Problem/Motivation
When a Link field is used with the Conditional Fields module and validation fails, the same validation error is displayed multiple times.
The validation error is rendered at three different levels:
Fieldset level — the error is displayed for the Link field container.
URI level — the same error is displayed for the uri element.
Title level — the same error is displayed for the title element.
This results in duplicate and confusing validation messages for the user.
Steps to reproduce
1. Enable the Conditional Fields module.
2. Create a form/content type containing a Link field with optional title field.
3. Make the Link field conditionally required.
4. Leave the Link field empty.
5. Submit the form.
6. Observe the validation errors.
| Comment | File | Size | Author |
|---|---|---|---|
| image-20260805-105025.png | 33.34 KB | gaurav_manerkar |
Issue fork conditional_fields-3616106
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
gaurav_manerkar commented