Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Id if multiple error messages #5555

Open
tkalmar opened this issue Apr 3, 2024 · 1 comment
Open

Duplicate Id if multiple error messages #5555

tkalmar opened this issue Apr 3, 2024 · 1 comment

Comments

@tkalmar
Copy link

tkalmar commented Apr 3, 2024

Describe the bug
When rendering a field with multiple error messages, the message div's get all the same Ids. This somewhat contradicts the idea of an id.

Version/Branch
4.19.1

To Reproduce
Steps to reproduce the behavior:
Use the kitchen-sink example:
https://formio.github.io/formio.js/app/examples/kitchen.html

in the day field enter 45 for the day of month.

Inspect the IDs of the error messages:

<div class="form-text error" id="e-exyimwc-day">Day is required</div>
<div class="form-text error" id="e-exyimwc-day">Day is not a valid day.</div>

Expected behavior
No duplicate IDs

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.
https://github.com/formio/formio.js/blob/4.19.x/src/templates/bootstrap/message/form.ejs the cause lies within this template i think, which does not account for multiple IDs

@olgabann
Copy link

@tkalmar Thank you for reporting this issue. I can reproduce it and have logged a ticket for the backlog. We are always willing to review any contributions to resolve this issue from the open-source community.

For internal reference: FIO-8256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants