In the Dynamic Forms Select List template there is a rule that grabs the name value if there is no HtmlId set. That value is used for the for attribute of the label tag. If a name with spaces is used there is a mismatch between the label for attribute and the select id attribute. The id replaces the spaces with underscores, but the for does not.
Example:
Name (set in CMS): "Some Select List"
Code:
In the Dynamic Forms Select List template there is a rule that grabs the
name
value if there is no HtmlId set. That value is used for thefor
attribute of the label tag. If a name with spaces is used there is a mismatch between the labelfor
attribute and the selectid
attribute. Theid
replaces the spaces with underscores, but thefor
does not.Example: Name (set in CMS): "Some Select List" Code: