Azure B2C no labels showing up on profile editing page

Michael Yeager 6 Reputation points
2022-04-04T15:21:47.917+00:00

There are four user attributes required for our user profiles in Azure B2C. When you go to the B2C profile editing page, there are four text boxes, but no labels. There is no way for the user to know which text box represents which profile attribute. We are using the default setup, blue ocean template, with branding enabled. I see other messages implying you have to create a custom page to get labels. Is this true?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,927 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,666 Reputation points
    2022-04-05T08:57:15.243+00:00

    Hi @Michael Yeager • Thank you for reaching out.

    The labels for the text boxes in all the B2C self-asserted pages with built-in/default templates are displayed inside the text boxes, as shown below. When you sign-up for a Local Account, the sign-up form also shows the labels inside the text boxes when default page templates are used. The problem with the profile editing page is that the attributes with values assigned, get pre-populated in the text boxes, which hides the labels. If you delete the prepopulated values, you can see the labels inside the text boxes as shown below:

    190084-image.png

    However, if you use your custom HTML page, the labels can be displayed out of the text boxes, as shown below:

    190121-image.png

    For your reference, here is the custom HTML page I have used: https://moviesdiag132.blob.core.windows.net/b2c/updateprofile.html

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. Bhushan Gawale 316 Reputation points
    2022-12-15T10:32:28.91+00:00

    The link is erroring out, can someone please confirm if the there is any way to inject custom elements / tags such as labels in the HTML that gets generated by b2c?

    0 comments No comments

  3. Jonas Jerndin 0 Reputation points
    2023-01-30T17:27:21.9333333+00:00

    In the markup generated by B2C there are labels, but they are hidden by css rules.
    (This might be pending on the template version)

    I did a solution to add a custom html file and embed css to change the visibility of the labels.
    Im using custom policies, but I guess that solution works for built-in user flows as well.

    b2clabels.png

    0 comments No comments

  4. Amy Ruddy 6 Reputation points
    2024-08-19T21:50:12.27+00:00

    Microsoft has removed the labels entirely which is surprising because it goes against UI best practice and fails WCAG/ADA accessibility requirements. For a business like the one I work for, ADA is a legal requirement. I hope MS works on a fix for this. A label and a placeholder serve different purposes on a form.

    https://www.w3.org/WAI/tutorials/forms/labels/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.