Is there any way to get the id of a field in a template?
In the HTML I get:
I know I can g
This doesn't work for every form field.
For instance {{ form.address.auto_id }} works while {{ form.address.auto_name }} will not.
{{ form.address.auto_id }}
{{ form.address.auto_name }}
However you can use {{ form.address.html_name }} to get the equivalent answer.
{{ form.address.html_name }}
Here are the docs