Keep validation and visibility criteria independent

User intention

Remove the visibility criterion from a short-answer question in my service request form.

The intention is included in the agent’s input prompt alongside environment details and task instructions.

What breaks, and what should happen

Play Both
BeforeThe defect at the parent commit
0:00.00 / 0:00.00Frame 0 · Inspect Summary in the Service request details form.

Inspect the validation rule, delete the visibility criterion, and compare the two count badges.

AfterThe same script once the merged fix is applied
0:00.00 / 0:00.00Frame 0 · Inspect Summary in the Service request details form.

Inspect the validation rule, delete the visibility criterion, and compare the separate counts.

How is it judged?

01 · Given
Restore the data and starting state.
A GLPI administrator is editing the Service request details form. Its Summary short-answer question has one validation criterion, length greater than 5, and one visibility criterion, Category equals Assistance. The validation and visibility badges each display 1.

02 · When
Perform the interaction.
Inspect the Summary validation editor without changing its criterion. Open the Summary visibility editor, delete its sole criterion using Delete criteria, and close the editor without saving the form.

03 · Judge
Rationale: Validation determines acceptable answers; visibility determines when a question is shown. Their badges summarize independent rule sets, so removing a visibility rule must not make the remaining validation rule appear absent.
Require
After deleting the sole visibility criterion and closing its editor, retain Summary's length-greater-than-5 validation rule. Show validation count 1 and visibility count 0 without saving or reloading.
Allowed
  • Equivalent placement, styling, or wording of the two count indicators is acceptable if their validation and visibility meanings and counts remain clear.
  • No requirement is imposed on the exact DOM structure, internal event handling, or persistence beyond this unsaved editing sequence.

Who repaired it

More from GLPI

IT asset management and ITIL service desk