Skip Logic¶
Skip logic shows a question only when a condition is true. A question about the size of a herd appears only when the answer to "Do you keep livestock?" is Yes. Without skip logic, every user sees every question.
Skip logic also applies to a Nested Form and to a Separator. A Nested Form with skip logic appears only when its condition is true. A Separator with skip logic hides its heading and text, not the questions under it.
Adding skip logic to a question¶
- Open the question's settings and click the Skip Logic tab.
- Click Add a condition.
- Choose the question to check in Select question, an operator, and a value. The list holds every question except ID, Auto Calculated and Button questions.
- Add more conditions if you need them. Then choose whether the question needs all of the conditions or any of them.
- Save the question.
The question is hidden until its conditions are true. "Show when" is the rule. There is no "hide when".
Operators¶
The operators depend on the type of the question you check.
| Type of the question you check | Operators |
|---|---|
| Integer, Decimal, Percent, Range, Date, Time, DateTime | Was answered, Was not answered, equals, not equal, greater than, less than, greater than or equal, less than or equal |
| File, Image, BarCode, GeoLocation, GeoArea | Was answered, Was not answered |
| Every other type, including Text and the Select types | Was answered, Was not answered, equals, not equal |
For a Select One or Multi-Select question, you pick the value from the question's own options. For a Date, you pick a date. For a number, you type a number.
Common patterns¶
| Goal | Condition |
|---|---|
| Show B only when A has an answer | A Was answered |
| Show B only when A is blank | A Was not answered |
| Show B when A is Yes | A equals yes |
| Show C when A is Yes or B is Yes | Two conditions, A equals yes and B equals yes, with any |
| Show a section of follow-up questions | Give each question in the section the same condition |
Hidden questions and their answers¶
A hidden question is not submitted. Its value is blank in the record, and a calculated field or a validation rule that reads it sees a blank. See Auto Calculated. A hidden Nested Form sends no rows.
A Required question that is hidden does not stop the submission. It is required only when it is shown.
If the user answers a question and a later change hides it, the form keeps the answer but treats it as blank. If the question shows again before the user submits, the answer comes back. The record does not save a hidden answer, so after the save that answer is gone.
Things to watch¶
- Chains. If B depends on A, and C depends on B, then a change to A can also show or hide C. On the web, a hidden question is blank to the conditions that check it. Check the whole chain when you change a condition.
- Loops. Do not make A depend on B and B depend on A. In a loop, each question reads the other as blank. With Was answered conditions, neither question can appear.
- Changed options. If you change the value of an option that a condition uses, update the condition too.
- Questions not on the form. A form ignores a condition on a question that is not on that form. On the web, it also ignores a condition on a question with a hidden preset value. If no condition is left, the question always shows.
- Order. A condition can check a question above or below it, on the web and in the 3D app. When a question checks a later question, it can appear or disappear after the user moves past it. It is clearer for the user when the checked question comes first.