Available on Pro and Enterprise
A rule makes a field respond to an answer given earlier in the form. You can show a field only when it’s needed, hide one that no longer applies, or make one required. It keeps forms short for field operatives, because they only see what matters for the job in front of them.
Rules work on installHUB’s forms and on your own, and they work on the job page and in the installHUB app. Open Forms, open a form, and select the field that should change.
How a rule reads
A rule is one sentence:
Show (or Hide, or Require) this field when another field is an answer.
The field you select is the one that changes. The field in the “When” part is the one that decides.
- Show: the field stays hidden until the answer matches. While a Show rule is on a field, the field reads “Hidden until a rule shows it”.
- Hide: the field disappears when the answer matches.
- Require: the field becomes required when the answer matches. The form can’t be submitted until it’s answered.
Add a rule
- Select the field that should change. Its editor opens under its row.
- Open the Rules tab and choose Add rule.
- Choose Show, Hide or Require.
- Under When, search for and choose the field that decides. You can pick any other field on the form, apart from headings and fields you’ve hidden.
- Choose how it should match:
- is: the answer is exactly this.
- is not: the answer is anything but this.
- contains: a text answer includes these words.
- is answered: any answer at all, including a photo or file.
- Choose the answer. For a Yes / No or Choice field, pick from the list.
- Choose Save rule.
The Rules tab now shows the rule count, and the rule appears there as a short summary such as “Shown when Any damage on arrival? is Yes”. Select a rule to edit it, or choose Delete rule to remove it. If you delete the last Show rule on a field, the field is visible again.
Which matches you get for each kind of field
| The deciding field is | You can use |
|---|---|
| Yes / No, Choice with one answer | is, is not, is answered |
| Photo, Photos, File upload, Signature, Video, Floorplan | is answered |
| Short text, Long text, Choice with Allow more than one, Date | is, is not, contains, is answered |
Match any of several answers
A rule has one deciding field. To react to more than one answer to that field, choose several answers in the same rule. The rule then matches when the answer is any of them. For example: Show “Describe the damage” when “Condition on arrival” is “Damaged” or “Missing parts”.
Limits to know about
- One deciding field per rule. There’s no “or” across two different fields.
- One Show or Hide rule and one Require rule per field. If you add a second rule that does the same thing, the rule editor warns you and Publish refuses it. Put the extra answers in the first rule instead.
- Locked fields. installHUB locks some fields on its forms. A rule can show a locked field or make it required, but it can’t hide it. That keeps compliance fields on the form.
- installHUB’s own rules. installHUB’s forms carry some rules of their own. They show with an installHUB tag. You can remove a Show, Hide or Require rule of installHUB’s for your company, where the field isn’t locked. Choose Remove for my company.
Test your rules
Choose Preview and fill the form in. Fields appear and disappear the way they will for your team, and fields a rule has revealed are marked “Shown by rule”. Use Reset test answers to start again. Nothing in the preview is saved.
Publish when you’re happy. New jobs use the published version, on the job page and in the installHUB app.
Examples
Ask for details only when something is wrong. On a delivery check, select “Describe the damage”. Choose Add rule, then Show, then “Any damage on arrival?” is Yes. Field operatives only see the field when they answer Yes.
Make a photo compulsory for a fault. Select the “Photo of the fault” field. Add a Require rule: when “Fault found?” is Yes. The form can’t be submitted with a fault logged and no photo.
Skip fields that don’t apply. On a solar form, select “Battery size”. Add a Hide rule: when “Battery included?” is No. Jobs without a battery never show it.
Show a field for a few answers. Select “Scaffold supplier”. Add a Show rule: when “Roof access” is “Scaffold needed” or “Not accessible”.
