I have a registration form on my website. All of the fields here so far have been text, which is no problem. However, I've just been asked to create a dropdown box for users to select their salutation (mr, mrs, doctor etc).
I've created the field in the backend and linked it to Users, and I can update it through a front-end form no problem using the value="users/saveUser" method, and pulling the values using currentUser.salutation.options. However, when registering, I can't output the values like that as the user isn't signed in (because they're registering), so there is no currentUser. I can't use the documentation code:
{% for option in entry.dropdownFieldHandle.options %}
<li>{{ option }}</li>
{% endfor %}
as there is no entry, I'm just on a template with a registration form on it. How do I output the dropdown options?