Conditional output in Toolset forms lets you show or hide form sections based on the values of fields. It's useful for creating dynamic forms.
You can display or hide elements of the form based on the values of custom fields and taxonomy inputs.
To add a Conditional group to your forms, use the following steps:
- Drag-and-drop a Conditional group element from the Extra elements panel into the forms.
- Move the Conditional group to a correct location within the form.
- Drag-and-drop one or more fields into the Conditional group.
You can add any number of fields into the Conditional group. Click to expand the options for the inserted Conditional group and add your conditions.
You can include any number of conditions and connect them with AND or OR conditions. For fine tuning, you may also enter a textual argument for the conditional display. For more complex display logic, you can write custom expressions.
You should avoid using conditions that use special characters like single quotes, double quotes, or dollar signs. Such conditions may fail to evaluate.
You can create nested conditions but not using the drag-and-drop editor. To create nested conditionals, switch to the Expert mode and enter the nested conditions manually.
- Allow users to manage their items
- Charge users for submitting content
- Extending Form Functionality with Hooks
- Styling Front-End Forms
- Setting up Automatic Post Expiration
- Controlling Access to Front-End Forms
- Adding Generic Fields to Forms
- Send Notifications when Someone Submits the Form
- Deleting Content from The Front-End
- Front-end Forms for Editing Content
- Front-end Forms for Adding Content
- Using the Native WordPress Media Manager in Front-End Forms
- Protecting Forms from Spam
- Front-end Forms For Repeatable Field Groups
- Selecting allowed tags in front-end forms
- Letting Forms Edit Post and User Fields Created by Other Plugins