Answers.Body: <p>You can do so by using the <code>fields[customFieldHandle]</code> syntax.</p>
  
  <p>For example, here's how you'd populate <code>location</code> and <code>bio</code> custom fields.</p>
  
  <pre><code>&lt;label for="location"&gt;Location&lt;/label&gt;
  &lt;input type="text" id="location" name="fields[location]" value="{{ currentUser.location }}"&gt;
  
  &lt;label for="bio"&gt;Bio&lt;/label&gt;
  &lt;textarea id="bio" name="fields[bio]"&gt;{{ currentUser.bio }}&lt;/textarea&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-23T19:09:36.270Z
Answers.LastActivityDate: 2015-03-23T19:09:36.270Z
Answers.UserDisplayName: Brad Bell
Body: <p>how can i fill custom fields from the front-end form ?</p>
  
  <p><a href="https://craftcms.com/docs/templating/user-registration-form" rel="nofollow noreferrer">https://craftcms.com/docs/templating/user-registration-form</a></p>
  
Tags: <users><custom-field>
Title: How to fill the custom fields of users from the front-end form?
ThreadText: # How to fill the custom fields of users from the front-end form?
  
  (Asked by: username_0 on 2015-03-23)
  
  how can i fill custom fields from the front-end form ?
  
  <https://craftcms.com/docs/templating/user-registration-form>
  
  **Tags:** users, custom-field
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-03-23. Score: 2 | Accepted answer
  
  You can do so by using the `fields[customFieldHandle]` syntax.
  
  For example, here's how you'd populate `location` and `bio` custom fields.
  
  ```
  <label for="location">Location</label>
  <input type="text" id="location" name="fields[location]" value="{{ currentUser.location }}">
  
  <label for="bio">Bio</label>
  <textarea id="bio" name="fields[bio]">{{ currentUser.bio }}</textarea>
  
  ```
  
  
  ---
  
  