Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Drop down list produces duplicate HTML element IDs

Avatar

Avatar
Level 1
sambas4746195
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
sambas4746195
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
sambas4746195
Level 1

08-10-2019

When OOTB drop down list component renders its options into the HTML markup, it outputs an ID "emtyValue" on the first element. This ID is static, and if the drop-down list component is used 2 or more times in the same form, this ID is duplicate. This is raised in the accessibility validation checks. Any suggestion?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

278 likes

Total Posts

1,101 posts

Correct Reply

181 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

278 likes

Total Posts

1,101 posts

Correct Reply

181 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

08-10-2019

Hi,

This has been discussed with Engineering in the past and it was confirmed that this element is just there for providing an empty first value to the dropdown. This would have caused a problem when the same dropdown has multiple options with the same id and not when different dropdowns have an empty hidden option with the same id. When tested with screenreader this caused no issue.  You can leave the emptyValue id as is.

Answers (0)