amforms
amforms copied to clipboard
Select isn't getting an id
The id isn't set because it's being treated as not defined.
{%- if id is defined %} id="{{ id }}"{% endif %}
Needs a real fix. However, I patched this by using the 'name' value and replacing the opening square bracket with '-' and removing the closing square bracket in plugins/amforms/templates/_display/templates/_includes/forms/select.html:
{%- if name is defined %} id="{{ name|replace({"[":"-","]":""}) }}"{% endif %}