I'm trying to set up a front end user profile that will allow the user to use the multi-select field. When I update from the CP, the changes are reflected on the front end, but this isn't working when trying to update from the front end form.
Is there anything I'm missing?
{% set languageOptionsIds = user.providerLanguages %}
<label for="providerLanguages">What languages do you work with?</label>
{% for option in currentUser.providerLanguages.options %}
<input type="checkbox" id="providerLanguages" name="fields[providerLanguages][]"
{% if option.selected in languageOptionsIds %}checked{% endif %} value="{{ option.selected }}">{{ option.label }}
</input>
{% endfor %}
useris deprecated.currentUseris the way to go. – Brad Bell Nov 20 '14 at 23:53userused to be global, but people were inadvertently overwriting it in their template code, so we changed the global tocurrentUser. – Brad Bell Nov 21 '14 at 00:04