How to use Conditional Logic
What is Conditional Logic
Conditional logic allows you to configure your form to show or hide fields, sections, and pages based on user selections. It's simply like multiple choices, where users select an option and it leads to another field as a condition for the previously selected option. This allows you to easily control what information your user can provide on your WordPress-powered site and tailor the form specifically to their needs.
How To Activate:
- Go to User Frontend>Post Forms >Add Form
Step 1:
- Select the title of the form e.g. Membership Form
- Drag and drop the RADIO button under Custom Fields on the right sidebar. Hover over the RADIO field and select Edit.
- Type the Field Label
- Type the Meta Key
- Type the first option e.g., Regular Member
- Click on the + sign to add another option
- Type the second option e.g. Non-Member
- Add more options if you need to
Step 2:
- Add another Custom Field e.g. Email Address – drag and drop. Hover over the field and select edit.
- Enter your field label
- Write your meta key.
- Click Yes to enable conditional logic.
- Select your desired RADIO label from the dropdown to apply conditional logic e.g select “Member Type”.
- Now select the desired condition to be applied for this particular field (e.g., “Regular Member”).
In this way, you can add other conditions, such as URL, country, address, and many more, and attach them to the previously created options [Regular Member, Non-Member].
Final Step:
Now Save the form and click on the Publish button. Finally, create another page and use the form Short-code.
Now your users can see this conditional logic form on your site and fill it in easily!