Allow a single form to opt out of validation.

Created on 10 December 2019, about 5 years ago
Updated 15 November 2023, about 1 year ago

Problem/Motivation

It seems that if any single form on a page calls for validation, then all other forms on the same page are automatically opted in as well.

Proposed resolution

The attached patch may be related to https://www.drupal.org/project/clientside_validation/issues/2949540 ✨ Allow specific form ids for clientside validation Needs work but is much more subtle; allowing for users to opt a single form out of validation via a hook_form_alter.

Remaining tasks

  • Gather feedback.
  • Review patch.

User interface changes

None

API changes

If a form has the data-no-clientside-validation data attribute, then clientside-validation will not run on it.

Data model changes

None

Thanks for your consideration!

✨ Feature request
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States luke.leber Pennsylvania

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    Not a real duplicate since the other issues deals with buttons and not forms as a whole. But changing this to respect novalidate, which is set by default on all forms by core, would mean this module never triggers I guess.

Production build 0.71.5 2024