I’m working with offline forms in Ignition Perspective and running into an issue with dynamic validation.
In my form, I have a toggle that determines whether a sample was taken at a location. If the sample was not taken, the related sample fields are disabled using the items.rows.items.enableWhen property.
The problem is that those fields are still configured with “required” validation, so even when they are disabled, the form submission is blocked because the validation still expects values.
What I’m trying to achieve is:
-
If the sample is taken → fields should be enabled and required
-
If the sample is not taken → fields should be disabled and not required, allowing the form to submit
Is there a way to make the required validation dynamic in offline forms so that disabled fields do not prevent submission?