Sitecore's Web Forms for Marketers Module utilizes Sitecore's Rules Engine to create a powerful dynamic form solution that supports conditional visibility, validation, and more. Use the following steps to set form fields to display or hide based on the value of another field, without writing a single line of code:
- Create a
DropList
field on your form in Sitecore
- Add an Option named something like "NA" (signifying "Not Applicable")
- Mark the field as required
- Click on the "Edit" button, under "Rules" in the left pane
- In the left box, scroll down to the "Fields" category and enter the relevant information into the "where specific field compares to specific value
- In the right box, select "hide element", under the "Actions" category