# How to add last\_name in the Account Settings page

**URL:** https://discuss.openedx.org/t/how-to-add-last-name-in-the-account-settings-page/16770
**Category:** Development
**Tags:** how-to, teak
**Created:** [August 12, 2025, 9:49am UTC](https://discuss.openedx.org/t/how-to-add-last-name-in-the-account-settings-page/16770 "2025-08-12T09:49:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abylaikhan.suev.02](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/abylaikhan.suev.02/32/7694_2.png) [@abylaikhan.suev.02](https://discuss.openedx.org/u/abylaikhan.suev.02)
#### Post date: [August 12, 2025, 9:49am UTC](https://discuss.openedx.org/t/how-to-add-last-name-in-the-account-settings-page/16770/1 "2025-08-12T09:49:49Z")

</div>

Considering that I have the MFE plugin enabled, how can I make the last\_name appear on the account settings page or registration page and have it filled in by users?

---

<div class="post-metadata">

### Author: ![Abdul\_Muqadim](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/abdul_muqadim/32/9226_2.png) [@Abdul\_Muqadim](https://discuss.openedx.org/u/Abdul_Muqadim)
#### Post date: [August 18, 2025, 11:54pm UTC](https://discuss.openedx.org/t/how-to-add-last-name-in-the-account-settings-page/16770/2 "2025-08-18T23:54:53Z")

</div>

Hi @abylaikhan.suev.02  
You can make the `last_name` field appear on both the registration page and the account settings page by setting it as **`required`** in your custom plugin configuration. For example:

```auto
hooks.Filters.ENV_PATCHES.add_item(
    (
        "openedx-lms-common-settings",
        """
REGISTRATION_EXTRA_FIELDS = {
    'first_name': 'required',
    'last_name': 'required',
    'confirm_email': 'hidden',
    'level_of_education': 'hidden',
    'gender': 'required',
    'year_of_birth': 'required',
    'mailing_address': 'hidden',
    'goals': 'hidden',
    'honor_code': 'hidden',
    'terms_of_service': 'hidden',
    'city': 'hidden',
    'country': 'hidden',
}
        """,
    )
)

```

Just make sure you include the **full list of fields** in your custom plugin (not only the ones you’re changing)and mark them as required or hidden according to your requirements.

Let me know if you need more help!
