You are currently viewing Handling Validations for Disabled Fields

Handling Validations for Disabled Fields

Introduction:

Introducing the “RunValidationsOnDisabledFields” Key for Enabling/Disabling Rules on Disabled Fields

A new key called “RunValidationsOnDisabledFields” has been introduced. This key determines whether the rules on disabled fields should be executed or not.

Works with Evolve 20.3.1 and higher.

Cause:

Changes in Validation of Disabled Fields from 12.1 to Evolve

In the previous version, 12.1, validations on disabled fields were performed successfully. However, in Evolve, disabled fields are no longer validated by default. The introduction of the “RunValidationsOnDisabledFields” key allows for configuring the behavior regarding the validation of disabled fields.

Solution:

Configuration Steps:

To configure the “RunValidationsOnDisabledFields” key, follow these steps:

  1. Open the Administration App and navigate to settings. Then, select the workflow option.
  2. The grid containing workflow keys will be displayed.
  3. Click on the “Add” button to add a new key.
  4. Search for “RunValidationsOnDisabledFields” and enter the desired value: true or false.
  5. If the value for this key is set to true, all disabled fields will undergo validation. If set to false, validations for disabled fields will be skipped.
  6. By default, the value for this key is true.

Note: It is important to consider the implications of setting the value to false. If any form fields have been promoted as disabled and the value for the key is set to false, users will be able to enter incorrect data into these fields without any validation. This can potentially lead to issues in the solution fields.

Additional Information:

Behavior:
Default value for this key will be true and if the value if false then behavior will remain same as that of 20.3.

Known Limitations:
 If value of the key is false then it should not validate the fields, but validations are still getting fired for disabled number, date, checkbox, repeating (number, text, date) fields in 20.3 and 20.3.1. Only textbox field will not be validated.

 Validations are not working if group in which fields are present is collapsed. (Deviation from 12.1)

 

Leave a Reply