A rule keeps a form short: "What needs doing?" only appears when "Forms oiled and clean" is answered Fail, and the whole Cold weather section only when the weather is Snow.
A rule looks at an item above it: a Yes / No, Single choice, Multiple choice or Response Set item.
Add a rule
- Open the template in the builder. See Build a form template.
- On the item to show or hide, click Show only when…. On a Section heading, the rule shows or hides the whole section, up to the next heading.
- Choose the item above it to look at, then what to test:
- is: one answer, e.g. Fail. On a multiple choice item, that choice is among those ticked.
- is one of: tick each answer that should show it, e.g. Rain and Snow.
- is answered: any answer at all.
- To look at more than one answer, click Add condition, then choose all of these are true or any of these is true.
- Click Publish version to save the template with its rules.
To take a condition off, click the X beside it. Taking off its last condition shows the item always.
If a rule can't be published, the message names the item, e.g. "Item 10 (Pump operator): a rule can only look at items above it." This happens when you move an item above the item its rule looks at.
On the form
Items appear and disappear as people answer the items above them. An item that's hidden:
- isn't required, so the form can be submitted without it,
- isn't printed on the form's PDF or exported,
- doesn't count as a Deficient answer.
If an item was answered and then hidden, saving the form clears its answer. Forms admins can still see the answer in the form's History.
Good to know
- A template's page lists each rule under its item, e.g. "Shown when Item 3 (Weather) is one of Rain, Snow".
- Changing a rule publishes a new version. Forms already started keep the rules they started with.
- Removing an item from the builder also removes the conditions that looked at it.