You want an answer to show or hide another field, to show the inspector a message, or to reject a number that cannot be right. You need a Draft or a Pending revision and the option SAVE of the object structure MXAPIINSPFORM.
A rule reads the answer of one field, its source. When the answer matches, the rule acts.
Add a rule. Open the question of the source field. A rule starts on every field type that IBM’s Inspection Forms application allows, and each has + rule under it:
| Field type | The rule matches |
|---|---|
| Single choice, Multiple choice | one of the field’s choices |
| Single choice domain, Multiple choice domain | one value of the field’s domain |
| Meter readings with a characteristic meter | one value of the meter’s domain |
| Single numeric entry, Formula calculation, Meter readings with any other meter | a number |
A choice field needs its choices first. A domain field needs its domain first: until it names one, it has no + rule, and a line under the field says so. The rule appears as one sentence, and each part of it is a box you can change:
- if the answer is a choice, a value of the domain, or a number with a comparison such as
>5. + and adds a second comparison, such as>= 0and<= 40, and remove “and” takes it away. - then one of four effects: show, show and require or hide another field, which you choose in the next box, or show the message. A message has the box require an action.
- A rule on a number can do all of it at once, as IBM’s Conditions dialog does. Beside the other field it has a box for a message and the box require an action. Leave the message empty to require an action without a message. The sentence names every part, such as “if the answer is > 10: show the message “Replace the pads”, require an action, and show and require 2 Photo of the worn pad”. A rule on a choice or on a value of a domain acts on a field only, as in IBM’s dialog.
- A rule that shows a field that is always visible has the link make the target hidden until shown.
Add a validation. A number field also has + validation. A validation reads “reject unless
= 0 and <= 100 with the message …“: the inspection app rejects an answer outside the range and shows the message. A field takes one validation. A choice field, a domain field and a characteristic meter take no validation. A meter field offers + validation once it names a continuous or a gauge meter.

Two rules on one field: Worn shows question 2.3, Loose shows and requires it.
A rule on a value of a domain. The box of the answer lists the values of the field’s domain, each
with its description, as IBM’s Conditions dialog shows them, such as N - No. For a meter field the
values come from the domain of its meter. The editor reads them with your account. Manage stores the
value, here N. On a Multiple choice domain field, the rule acts when the value is among the values
the inspector picks.

A rule on a domain field matches one value of its domain.
The values belong to the system, and a domain can change. So the editor keeps every rule as Manage holds it and deletes nothing when a form opens. When the domain no longer has the value of a rule, the sentence shows the old value with a warning sign, and the form check names it as an error until you pick another value or delete the rule. When you may not read the domains, the box of the answer is a plain box. The rule keeps its value, and the form check warns that it could not check it. A change of the field’s domain, meter or type leaves its rules in place; the form check names those that no longer fit.
Several rules on one field. When several rules act on the same field, required wins over not required, then visible wins over hidden, then the later rule wins. A rule of a hidden field does nothing, so rules can work in a chain.
The Rules tab lists every rule of the form, each as one sentence under the question it reads. A click on the question opens it.

The Rules tab lists every rule of the form in one place.
Delete rule, the icon at the end of a rule, removes it.
