Add a configuration option for exceptions to all forms selection

Created on 23 December 2024, about 20 hours ago

Problem/Motivation

Due to issues with jQuery validation, the number of forms that this module causes to break on our site is not insignificant. We could use the "Clientside Validation Enabled Forms" field if we choose to deselect the "Use Clientside Validation in all forms" checkbox. When dealing with a site of the complexity of ours, however, the number of forms we would have to explicitly identify to have the module validate would be significant. This configuration could go out of date when new entity types are added.

Thus, it would be ideal to be able to create an "Exceptions" form element that is available when the "Use Clientside Validation in all forms" is checked.

Proposed resolution

An "Exceptions" textfield added to the configuration form (`/admin/config/user-interface/clientside-validation`).
Any form id added to the "Exceptions" field, with one form id per line, results in the module not validating that form.

User interface changes

The "Exceptions" textfield would be visible when the "Use Clientside Validation in all forms" is checked.

The "Exceptions" field should have help text that describes the purpose.

Should there be data in the "Exceptions" textfield when the "Use Clientside Validation in all forms" is unchecked, that data should be removed when the configuration form is saved.

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States skyriter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024