I have questions about using Toolset forms in a project. Specifically, I want to know if I can have a form that creates a custom post type and requests user information simultaneously. Additionally, I want to enable multiple file uploads for disconnected users in forms.
Solution:
1. It is not possible to have two forms inside a single form. If the forms do not need to be connected, create a form and set it to redirect the user to a page with the second form upon submission. For connected forms, custom coding is required.
I am experiencing a production issue where custom post type content fields are not mapping correctly. The issue persists even after disabling all plugins except Toolset. The content data from previous posts is visible, but new data entries are not functioning as expected.
Solution:
The issue appears to be a conflict with the "CookieYes | GDPR Cookie Consent" plugin. Disabling this plugin resolves the problem. Ensure that "CookieYes" is inactive if not needed, as it was causing the content field mapping issue.
The customer wanted to allow coaches, defined as CPTs, to edit their own records using Toolset Forms. He explored two potential methods but was unsure how to implement them using Toolset, especially since he uses the legacy version of Views. The primary challenge was to ensure each coach could only edit their own record without using the standard WordPress authentication system.
Solution:
We suggested using a unique URL with a secret parameter to allow coaches to access and edit their records. The steps include:
Adding a custom field (coach_secret) to each coach's profile.
Generating and sending a unique URL to each coach containing the secret parameter.
Creating a custom shortcode to handle the secret verification and display the form pre-filled with the coach's details.
Implementing a custom function to validate the secret parameter against the coach_secret field.
Here is a simplified version of the custom code used: