How to add last_name in the Account Settings page

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?

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:

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!