# Family/Given name fields in Lock widget not populating name field

**URL:** <https://community.auth0.com/t/family-given-name-fields-in-lock-widget-not-populating-name-field/33377>\
**Category:** Get Help\
**Tags:** signup, sign-up, lock, auth0\
**Created:** [November 5, 2019, 7:44pm UTC](https://community.auth0.com/t/family-given-name-fields-in-lock-widget-not-populating-name-field/33377 "2019-11-05T19:44:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam.schechter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sam.schechter/32/15319_2.png) [@sam.schechter](https://community.auth0.com/u/sam.schechter)\
**Post date:** [November 5, 2019, 7:44pm UTC](https://community.auth0.com/t/family-given-name-fields-in-lock-widget-not-populating-name-field/33377/1 "2019-11-05T19:44:13Z")

</div>

We are currently using the Auth0 Classic Lock widget for user signup. When signing up via this widget the `given_name` and `family_name` fields are populated in `user_metadata`, but the name is not properly populated in the management dashboard (the name still appears as the username/email).

When users are created via the Management API, the `user_metadata` looks identical, but the name field is properly populated.

Here is an example of my signup configuration

```
additionalSignUpFields: [{
    name: "given_name",
    placeholder: "First name",
  },
  {
    name: "family_name",
    placeholder: "Last name"
  }

```

and here is a sample of the user object which is created from the lock widget

```
"email": "firstname.lastname@example.com",
"name": "firstname.lastname@example.com",
"nickname": "firstname.lastname",
"user_id": "...",
"user_metadata": {
    "given_name": "firstname",
    "family_name": "lastname"
}

```

Notice also that the `nickname` field seems to populate as expected by dropping the `@example.com`. This is the same behavior as a user created via the Management API

Is there any reason the Classic Lock widget would not be triggering the population of the name field?

---

<div class="post-metadata">

**Author:** ![lily.wisecarver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lily.wisecarver/32/20402_2.png) [@lily.wisecarver](https://community.auth0.com/u/lily.wisecarver)\
**Post date:** [January 27, 2020, 11:27pm UTC](https://community.auth0.com/t/family-given-name-fields-in-lock-widget-not-populating-name-field/33377/2 "2020-01-27T23:27:00Z")

</div>

Hi @sam.schechter,

I was able to help troubleshoot this issue in a support ticket you submitted. I will post the solution here so other community users can see it.

To solve this you wrote a [rule](https://auth0.com/docs/rules) which checks the `user.name` field, and if it is not formatted correctly, updates it as expected.

Thank you for reaching out!

---

<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:** [February 11, 2020, 11:27pm UTC](https://community.auth0.com/t/family-given-name-fields-in-lock-widget-not-populating-name-field/33377/3 "2020-02-11T23:27:02Z")

</div>

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