Moving the labels above the textbox in the Azure AD B2C sign up user flow

Staisha Neville 20 Reputation points

I would like to include labels outside the textbox for the First Name and Last Name fields. Some of the text is auto-filled and it isn't clear what the input box was asking for in these cases. We are using Microsoft's recommended User Flow which offers less customizability than the custom policy, so this may not be possible.

User's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,552 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 25,296 Reputation points Microsoft Employee

    Hi @Staisha Neville ,

    Thanks for reaching out.

    I understand you are trying to Label the text box with appropriate name as per your scenario.

    To include labels outside the textbox for the First Name and Last Name fields, you need to customize the user interface of your application in Azure Active Directory B2C.

    In the recommended User Flow, you can customize the user interface by modifying the HTML/CSS/JS templates that are used to render the pages. However, this requires advanced knowledge of web development.

    Refer to customize the user interface using html -

    However, in your scenario if you want to update/localize the auto filled text fields names , you can do that with the help of Localization.

    Naviagate to User flow where you want to make changes, select Languages->English and go the page where you want to make the changes.

    In this scenario, Local account Sign up Page

    User's image

    Download defaults and search for surname in the json file.

    you can update the autofill value of surname with "Last Name" and upload the file again to reflect the changes in the UI.

    Make sure to update the override value to true for which element you want to update the value.

    User's image

    Hope this will help.



    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments