Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-03T13:18:56.430Z
Answers.Text: 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" : "" }} />`
Answers.UserDisplayName: PWL
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-23T23:33:02.290Z
Answers.Text: No worries... care to mark it as the answer?
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-23T23:15:51.297Z
Answers.LastActivityDate: 2016-06-17T16:00:18.133Z
Answers.LastEditDate: 2016-06-17T16:00:18.133Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Tags: <users><registration><custom-field>
Title: How to add custom user fields to the front end registration page
ThreadText: # 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](https://craftcms.stackexchange.com/questions/4315/how-do-i-add-more-account-fields-for-user-registration) 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:
  
  ```
  <h3><label for="Address">Address</label></h3>
  <input id="Address" type="text" name="Address"
      {%- if account is defined %} value="{{ account.Address}}"{% endif -%}>
  
  {% 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:
  
  ```
  <input id="Address" type="text" name="Address"
  {%- if account is defined %} value="{{ account.Address}}"{% endif -%}>
  
  ```
  
  To:
  
  ```
  <input id="Address" type="text" name="fields[Address]"
  {%- if account is defined %} value="{{ account.Address}}"{% endif -%}>
  
  ```
  
  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" : "" }} />`  
  
  ---
  
  