# Custom register fields for user

**URL:** <https://community.auth0.com/t/custom-register-fields-for-user/59711>\
**Category:** Get Help\
**Tags:** angular4\
**Created:** [March 19, 2021, 9:08am UTC](https://community.auth0.com/t/custom-register-fields-for-user/59711 "2021-03-19T09:08:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krisslk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/krisslk/32/28279_2.png) [@Krisslk](https://community.auth0.com/u/Krisslk)\
**Post date:** [March 19, 2021, 9:08am UTC](https://community.auth0.com/t/custom-register-fields-for-user/59711/1 "2021-03-19T09:08:20Z")

</div>

hey, I have a question and I need your help to archive this task, at the moment I am using angular as the frontend and mysql database as the backend. what I need is to the additional data from the user such as address, data of birth, telephone no (custom fields) which I need to save with the user id. so that when ever a user logins I can retrieve the above fields and use in the UI. I need to know whether I can add custom fields to the register in the auth0 register page and store with the userid.

when doing it with mysql it’s super easy, what I do is create a custom register form with relevant fields and after submit the data will be inserted to the table with an auto generated ID

but I feel auth0 is much more secure when comes to validation and it’s easy 😛  
how to achieve this task, please guide me

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 19, 2021, 6:02pm UTC](https://community.auth0.com/t/custom-register-fields-for-user/59711/3 "2021-03-19T18:02:03Z")

</div>

Hi @Krisslk,

There are a few different ways that you can collect additional profile data:

- If you are using Classing Universal Login, you can add `additionalSignupFields` to the [Lock Configuration Options](https://auth0.com/docs/libraries/lock/lock-configuration#additionalsignupfields-array-). You update this in the Auth0 Dashboard by going to **Branding \> Universal Login** and going to the Login tab. Enable **Customize Login Page** and select **Lock** from the **DEFAULT TEMPLATES** dropdown. Finally, add the additionalSignupField object to the configs:

```auto
var options = {
    // other options
    additionalSignUpFields: [
        {
            name: "first_name",
            placeholder: "Enter Your First Name"
        }, 
        {
            type: "select",
            name: "location",
            placeholder: "Choose your location",
            options: [
                {value: "us", label: "United States"},
                {value: "fr", label: "France"},
                {value: "ar", label: "Argentina"}
            ],
            // The following properties are optional
            icon: "https://example.com/assests/location_icon.png",
            prefill: "us"
        }
    ]
};

var lock = new Auth0Lock('clientid', 'domain', options);

```

- Alternatively you could use a redirect rule to collect profile data on your own page after the user signs up: [Redirect Users from Within Rules](https://auth0.com/docs/rules/redirect-users)

- You could also use progressive profiling as described in this article: [Progressive Profiling: Vital Info from Happy Customers](https://auth0.com/blog/progressive-profiling/)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 3, 2021, 6:02pm UTC](https://community.auth0.com/t/custom-register-fields-for-user/59711/4 "2021-04-03T18:02:53Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
