<p>You need to change your input tag from:</p>

<pre><code>&lt;input id="Address" type="text" name="Address"
{%- if account is defined %} value="{{ account.Address}}"{% endif -%}&gt;
</code></pre>

<p>To:</p>

<pre><code>&lt;input id="Address" type="text" name="fields[Address]"
{%- if account is defined %} value="{{ account.Address}}"{% endif -%}&gt;
</code></pre>

<p>All custom fields input types should have a name prefixed with <code>fields[]</code>.</p>

CC BY-SA 4.0
2022-02-03T13:18:56.430Z
A bit on the side, but for future reference: If the user field is of type Checkboxes you will need to add `[]` to the name to support multiple selections. Ex. `<input name="fields[options][]" type="checkbox" value="enableBetaFeatures" {{ currentUser.options.contains('enableBetaFeatures') ? "checked" : "" }} />`
PWL
CC BY-SA 3.0
2014-10-23T23:33:02.290Z
No worries... care to mark it as the answer?
Brad Bell
CC BY-SA 3.0
2014-10-23T23:15:51.297Z
2016-06-17T16:00:18.133Z
2016-06-17T16:00:18.133Z
Brad Bell
<p>This question is similar to <a href="https://craftcms.stackexchange.com/questions/4315/how-do-i-add-more-account-fields-for-user-registration">this</a> post, but more of the next logical step.</p>

<p>I have added custom fields to my user profiles, but would like these attributes to be part of the registration page.</p>

<p>For example I'd like the user to specify their address on sign up, but I haven't found a way to reference this field correctly in the page.</p>

<p>Something like:</p>

<pre><code>&lt;h3&gt;&lt;label for="Address"&gt;Address&lt;/label&gt;&lt;/h3&gt;
&lt;input id="Address" type="text" name="Address"
    {%- if account is defined %} value="{{ account.Address}}"{% endif -%}&gt;

{% if account is defined %}
    {{ errorList(account.getErrors('Address')) }}
{% endif %}
</code></pre>

<p>This doesn't work because account.Address doesn't seem to be the correct way to access custom user fields on registration, and the only way I currently know how to access this field would be through currentUser.Address, but that relies on the account all ready being created.</p>

<p>Does anyone know how to access these fields to save during registration, or am I going to have to create the account first then have a second page that allows the user to set these fields?</p>

<users><registration><custom-field>
How to add custom user fields to the front end registration page
# How to add custom user fields to the front end registration page

(Asked by: username_0 on 2014-10-23)

This question is similar to this post, but more of the next logical step.
I have added custom fields to my user profiles, but would like these attributes to be part of the registration page.
For example I'd like the user to specify their address on sign up, but I haven't found a way to reference this field correctly in the page.
Something like:
Address


{% if account is defined %}
    {{ errorList(account.getErrors('Address')) }}
{% endif %}

This doesn't work because account.Address doesn't seem to be the correct way to access custom user fields on registration, and the only way I currently know how to access this field would be through currentUser.Address, but that relies on the account all ready being created.
Does anyone know how to access these fields to save during registration, or am I going to have to create the account first then have a second page that allows the user to set these fields?

**Tags:** users, registration, custom-field


---

## 1 answers

### Answer by username_1 on 2014-10-23. Score: 20 | Accepted answer

You need to change your input tag from:


To:


All custom fields input types should have a name prefixed with fields[].

> **Comments:**
> **username_1**: No worries... care to mark it as the answer?  
> **username_2**: A bit on the side, but for future reference: If the user field is of type Checkboxes you will need to add `[]` to the name to support multiple selections. Ex. `<input name="fields[options][]" type="checkbox" value="enableBetaFeatures" {{ currentUser.options.contains('enableBetaFeatures') ? "checked" : "" }} />`  

---

