blog
Dynamic Form Fields in 6 Steps in WFFM
How to create a form field in Sitecore's Web Forms for Marketers that displays conditionally based on the value of another field
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:

  1. Create a DropList field on your form in Sitecore
  2. Add an Option named something like "NA" (signifying "Not Applicable")
  3. Mark the field as required
  4. Click on the "Edit" button, under "Rules" in the left pane
  5. In the left box, scroll down to the "Fields" category and enter the relevant information into the "where specific field compares to specific value
  6. In the right box, select "hide element", under the "Actions" category
2 Comments
Post a Comment

 
  • Comment by Web Dude on May 26, 2015
    Has anyone actually got this to work? I've applied the steps above in the order as shown above to no avail. Is the field name the display name we give the field or is it the id rendered on the page in html. tried this a bunch of time's and haven't been able to get it working. Could you through a screenshot of the inputs and the rule configuration? Thanks.
  • Comment by Calvin on Nov 25, 2015
    I would also like to know how to get this to work. I also tried the step above and it didn't work.