Identical values validation bug

Created on 19 September 2021, about 3 years ago
Updated 26 March 2024, 9 months ago

Webform with 4 fields:
- name
- email1
- email2
- comment

name and comment are text fields, not required
email1 and email2 are required email fields
validation: email2 must be equal to email1

if not equal, the correct error is displayed to the user.

if equal, the form displays the error "email2 is not equal to name" instead of proceeding with no error.

how to get this validation to work?

interestingly, if I fill the email address into the Name field, the error becomes "email2 is not equal to comment"

so the validation somehow wants to compare email2 to any other field after the first validation is done.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024