Skip to main content

Dynamic form rules - Show or hide form questions based on earlier answers

Add a rule to your form so a question appears only when someone gives a certain answer, and check how it works in Preview.

Shorter, more relevant forms are easier to finish, so more people complete them.

User Permissions

Admins and Editors in the workspace.

Note: Dynamic form rules aren't on in every organization yet. If you don't see the Dynamic rules tab when you click a form, contact your Flowcode CSM.

Add a rule that shows a question

This example shows "Favorite drink" only to people who answer "Yes" to "Visit us often?".

  1. In the Flow Editor, click the page, then click the form.

  2. In Edit form, on the Content tab, add both questions: the one people answer first (a Dropdown with the options "Yes" and "No") and the one to show.

  3. Click the Dynamic rules tab, then click Add rule.

  4. Next to If, select the question to check, the operator (is choice), and the answer ("Yes").

  5. Under Then show fields, click Search fields... and select the question to show. You can add more than one.

The Dynamic rules tab with a rule: If Where did you first try Cold Silver? is choice At a bar or restaurant, then show Which flavors do you like?, numbered 3 to 5

Tip: A question picked under Then show fields stays hidden until its rule is met. To hide a question only after a certain answer, use the opposite operator: is not choice "No" shows the question until someone picks "No".

Combine conditions

  • Click + at the end of a condition to add an and line. Every and condition must be true.

  • Click + Add "or" group to add another set of conditions. The question shows when any one group is true.

  • If a question is picked in more than one rule, all of those rules must be met before it shows.

  • To copy or delete a rule, hover over it and click the copy or trash icon on the right.

Choose an operator

The operators depend on the type of question you check:

  • Dropdown and Single select: is choice and is not choice, plus the text operators.

  • Multi-select: includes choice and does not include choice, plus the text operators.

  • Single checkbox: is checked and is not checked.

  • Number: equals, not equals, greater than, greater than or equal, less than, less than or equal, is empty, and is not empty.

  • Text operators, for every other question: equals, not equals, is empty, is not empty, matches regex, and contains.

For a choice question, use the choice operators. You pick the answer from the question's own options, so nothing needs to be typed exactly.

Test your rules in Preview

  1. At the top of the editor, click Preview.

  2. Answer the form. Questions appear and disappear as you change your answers.

Preview of the form with At a bar or restaurant chosen and the Which flavors do you like? question shown

Note: On the Build canvas, questions that a rule hides are hidden too. To edit one, use the Content tab in Edit form.

Publish and test

After you click Publish, the live form follows your rules. A hidden question doesn't need an answer, even if it's required, so people can submit without it. When a required question is shown and left empty, people see "This value is required." and can't submit until they answer it.

Answers are saved with the flow's other form results. See Form results - See and export your form results, RSVPs, and sign-ups.

Best practices

  • Use choice questions and the choice operators where you can, so answers don't have to be typed exactly to match.

  • Test number rules in Preview with the exact number, since a less than rule can also match the number itself.

  • Delete and lines you don't need, because an empty and line still counts and can stop a rule from working.

Troubleshooting

"My question disappeared from the form in the editor."
A rule hides it until its condition is met. Click the form and check the Dynamic rules tab. The question is still on the Content tab.

"My form rule isn't working" or "the question never shows."
Check every condition in the rule. An and line still counts when its value is empty, so delete lines you don't need with the trash icon. For text questions, equals needs the exact answer. Use contains or a choice question instead.

"My 'less than' rule also shows the question when the answer equals the number."
In Preview, a less than 3 rule also showed the question for an answer of 3. Test number rules in Preview with the exact number before you publish.

"I can't pick the question I want under Then show fields."
A question used in a rule's If conditions can't also be shown by that rule. Add a second rule instead.

FAQs

Can I send people to a different page based on their answer?
Yes, with a smart rule after the form, not a form rule. See Smart Rules - Send people to different places by location, device, or answer.

What happens to a rule if I delete a question it checks?
The rule is deleted with it.

Is there a limit on how many rules a form can have?
No. The editor sets no limit.

Related articles

Did this answer your question?