Incorrect client-side validation when multiple forms on a page

Created on 28 August 2023, over 1 year ago

Problem/Motivation

If there are multiple forms on the page, "jquery validate" validates only the first form.

Steps to reproduce

1. Include multiple forms on the page
2. Try to submit the second form
3. The first form is always validated

Proposed resolution

There is an incorrect usage of Drupal behaviors and jQuery validate plugin.
Moreover, the module conflicts with Clientside Validation module in assigning validation function.
We need to properly implement Drupal behaviors.

Remaining tasks

No

User interface changes

No

API changes

No

Data model changes

No

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇷🇺Russia lexbritvin

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

Comments & Activities

Production build 0.71.5 2024