I want users to be able select their own name prefix/title (Mr, Mrs, Dr. etc) as part of front end form that allows them to update their user details.
I have created a custom dropdown field and populated this with the titles that users can select. However, I'm having trouble displaying the dropdown on the front end form that allows users to select one option.
Any guidance on how I would go about achieving this would be helpful!
EDIT
This is what I had initially. However, this just prints each option as a separate select?
{% set dropdownField = craft.fields.getFieldbyHandle('honorific') %}
{% for option in dropdownField.settings.options %}
<select id="honorific" name="honorific">
<option value="{{ option.value }}">{{ option.label }}</option>
</select>
{% endfor %}
<select>
tags are inside thefor
loop. Move them outside the loop and you'll be golden!