An inspection form can be wrong in many ways, and most of them do not stop it from going live. A hidden question that no rule ever shows. A question with no response field. A rule that waits for a choice text that somebody renamed. In IBM’s Inspection Forms application, the status switch stands in the list of forms, and we saw no list of findings before an activation. The preview is a separate page. An answer there fires no rule, so a field that a rule shows stays hidden. So the first person to try the logic of a form is often the inspector, on the device, during a real inspection.
mas-tools.com Inspection Form Editor puts two things beside the form while you build it: a form check that names every fault with its place, and a preview that answers like the mobile app. We checked the behaviour on our test system, on the MAS 9.2 series.
The form check runs on every change

A new choice of question 2.4 has no text yet. The Check tab, the question, the outline and the bar all say so.
The check runs while you edit. Each finding has a severity and a text that names the question and the field, and a click on it opens the question. In the picture, a new choice of question 2.4 has no text yet, and four places say so at once. The Check tab lists the error. A red line under the question repeats it. The outline marks question 2.4 with ⚠, and the bar counts one problem. The line of the save adds that the choice waits for its text and that everything else is saved.
A finding has one of three severities:
| Severity | What it means | Examples |
|---|---|---|
| Error | Manage would refuse the form, or the inspection app cannot use it. Activate stays closed. | a form without a question, a choice field without choices, an upload without a document folder, a formula Manage refuses |
| Warning | The form works, and something in it is probably wrong. | a question without a response field, a hidden field that no rule shows, a document folder the system does not have |
| Information | Something worth knowing. | the form has no type |
Faults the check names before activation
Several findings cover faults that are easy to miss in a long form:
- A question without a response field. It asks the inspector nothing.
- A hidden field that no rule shows. It is a warning. When the field is also required, it is an error, because the inspector can never answer it.
- A rule that shows a field which is always visible. It is a warning, and the rule offers a link that makes the field hidden until a rule shows it.
- A rule on a choice that is gone. Manage binds a rule to a choice by the choice’s text. After a rename, the rule waits for a text that nobody can pick, and the check names the lost choice.
- A validation that can never match, such as greater than 10 and less than 5.
Two more findings are warnings. On our test system, Manage stored any name in the meter, the domain and the document folder of a field without a check, so a name that the system does not have is a warning. And the inspection app draws nothing for a numeric range field, so an inspector cannot answer it.
Rules that point in a circle are an error too. The editor marks the circle with its path at the moment the last rule closes it.
The same check runs over a form file before an import, and on the command line as mtif check,
which the article on forms as files
describes.
Activation says what it will do

Before the activation, the dialog says what it does.
Activate… first saves what is not saved yet and runs the check. With an error, Activate stays
closed and the dialog names the errors. Without one, the dialog names what the activation changes:
the revision that becomes active, the revision before it that becomes Revised, and the check’s
counts. It names the pending inspections that move to the new revision. Manage moves them only when
the system property mxe.app.inspection.UpdatePendingResults is 1, and the dialog says why when
none move. It also names the job plans, the job plan tasks, the route stops and the open work orders
that use the form. Then one click activates the revision.
Warnings and information leave Activate open. The administrator reads them and decides.
The preview answers like the mobile app

In the preview, Fail on question 1.3 shows questions 1.4 and 1.5, and both are required now.
The preview in the side panel is a reproduction of the mobile app, and it says so. It follows every keystroke of the form. You pick a choice or a value of a domain, or you type a number, and the form reacts as the app does. A rule shows or hides a field, a message appears under its field, a validation rejects a number, and a formula computes its value. In the picture, the answer Fail on the safety valve shows the two follow-up questions, and both are required now.
The preview evaluates the rules as the inspection app does. A rule acts while its answer matches and its own field is visible. So a hidden field switches its rules off, and rules can work in a chain. When several active rules name the same field, required wins over not required, then visible wins over hidden, and then the later rule wins.
Phone and Tablet switch the width, and Reset answers clears every answer. The preview stores nothing in Manage.
A clean check before the activation

The form check of the locomotive daily check finds nothing, so the form can be activated.
The picture shows the end of the user guide’s first form: a daily check of a steam locomotive with two sections, six questions and two rules. The Check tab counts 0 errors, 0 warnings and 0 information, and the bar shows ✓ 0. Before this point, the preview had shown both follow-up questions on the answer Fail.
The messages of the check are written to be acted on. Two that an administrator meets early:
- “2.2 Photo of the turntable pit has no document folder.” A file upload or a signature needs a
folder, for example after a
[photo]line in a pasted checklist. Open the question and fill in Document folder. - “The form check found 1 error. Fix it before the activation.” Open the tab Check, click the error, and fix it.
A normal Manage form at the end
The check and the preview live in the editor. What the editor saves is an ordinary inspection form, written through the object structure MXAPIINSPFORM, the structure that IBM’s application uses too. When we compared every column, a form saved by the editor held the same rows as the same form saved the way IBM’s application saves it. IBM’s application opens the form as it opens any other, and the inspection app of Maximo Mobile reads the same records from Manage. Both meet the form after the check has found its faults.
What comes next
The user guide walks through the preview and the check, and through a first form from nothing to Active: The preview and the form check and A first inspection form. Every message with its reason is in Common errors. Formulas have checks of their own: Formulas with a Safety Net. The mas-tools.com Inspection Form Editor page lists the whole series.
Do you want to see the check on one of your own forms? Get in touch.
IBM and Maximo are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide.
