amforms icon indicating copy to clipboard operation
amforms copied to clipboard

Select isn't getting an id

Open LennGev opened this issue 8 years ago • 1 comments

The id isn't set because it's being treated as not defined. {%- if id is defined %} id="{{ id }}"{% endif %}

LennGev avatar Oct 26 '16 09:10 LennGev

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 %}

johnsontb avatar Apr 30 '18 20:04 johnsontb