How to add conditional logic to a form
Show a question only when an earlier answer calls for it, with one condition or several combined, and turn a rule off again.
On this page
Conditional logic lets a form adapt to the person filling it in. A follow-up question can stay hidden until an earlier answer makes it relevant: ask "What worked well?" only after someone says they have worked with a coach before.
A rule lives on the question it hides. It looks at questions above it, so build the form top to bottom and add the rules last.
Add a rule to a question
- Open the question's settings: click the gear button on the question (Field settings). On a phone, tap the handle next to the question and choose Field settings.
- Under Logic, set Show this field to When….
- Notie adds a first condition for you: the first field of the form, which can be a question or a hidden field, with is answered.
- Choose the Field to look at, the Condition, and a Value if the condition needs one. The Field list names a text question by its answer, such as "Your email (answer)", a choice question by the question itself, and a hidden field by its URL parameter, such as "?utm_source". Type a few letters to filter it.
The change is saved straight away. A small branch icon on the question shows that it has a rule. Hover over it to read Shown only when its rule matches.

When… is greyed out when there is no question or hidden field above this one yet. Add the question the rule depends on first.
A hidden field without a parameter name is not in the Field list, because it never gets a value. The settings say so; give it a name in its own settings and it appears. If a rule already uses a hidden field that has lost its name, that condition shows a warning: it can never be met until the field is named again.
Conditions you can use
| Condition | Shows the question when the other answer… |
|---|---|
| is / is not | equals, or does not equal, the value |
| contains / does not contain | includes, or does not include, the value as text |
| starts with / does not start with | begins, or does not begin, with the value |
| ends with / does not end with | finishes, or does not finish, with the value |
| is answered | has anything in it |
| is not answered | was left empty |
For a single or multiple choice question, is and is not let you pick one of its options from a list. For other questions you type the value. The text conditions (contains, starts with, ends with and their opposites) compare a choice question's selected option labels, and one matching option is enough. Comparisons ignore capital letters and spaces at the start or end, so "Yes" matches "yes ".
You can also base a rule on a hidden field, for example to show a question only to people who came from your newsletter link.
Combine several conditions
- In the rule, click Add condition.
- Set up the new condition the same way.
- With two or more conditions, choose how they combine under Match:
- all conditions match: every condition must be true;
- any condition matches: one true condition is enough.
To remove a condition, click the × next to it. A rule can hold up to 20 conditions.
How rules behave for respondents
- Hidden questions are not shown and cannot be answered. They are never required while hidden, even if they are marked Required.
- A question that is hidden by its own rule never satisfies another rule, not even is not answered. Chains of follow-ups therefore collapse together: hide the first and the ones that depend on it hide too.
- Hiding is not a way to keep something secret. The text of every question, hidden or not, is sent with the published page, so anyone can read it in the page source.
- Rules work the same in Preview, on the published page and in embeds.
When a rule has a problem
If you move or delete something a rule depends on, Notie shows a warning triangle on the question and explains what is wrong in its settings, for example This rule's field is now below this one. Move it above. What the form does until you fix it depends on the problem:
- The question the condition looks at was deleted, or the condition has no value to compare. The condition is ignored. If none of the conditions in a rule work, the question is simply shown.
- The option an is or is not condition picks was deleted. The condition still counts, but no answer can be that option any more. is that option is never true, so with a single condition, or with all conditions match, the question stays hidden. is not that option is true whenever the question it looks at is shown. Pick another option in the rule.
- The question the condition looks at was turned from a choice question into a text question. Notie shows no warning. The condition now compares the typed answer with the option text saved in the rule, shown under Value. Check your rules whenever you change a question's type.
- The question the condition looks at is now below this one. The rule still works, but people answer that question later, so this one only appears or disappears once they scroll back up. Move the question above.
Turn a rule off
Open Field settings and set Show this field back to Always.
Templates for this
Preview a ready-made starting point, then make it yours.
Try it in Notie
Start from the Client intake form template and change anything you like. Free forever, no credit card required.
Start with the Client intake form templateWas this helpful?
Related articles
- How to group questions into sectionsPut questions and text in a section to show or hide them together with one rule, and move or remove the section.
- How to make a question requiredRequire an answer to a question, always or only when an earlier answer calls for it, and see what respondents are shown.
- How to use hidden fields and URL parameters in a formRecord where a respondent came from, or any value in the link, without asking them a question, and use it in a rule.
From the blog
Still stuck?
Email us and a person will reply. Every message is read.
Email supportHave an account? Send a message from the app.