Azure B2C signup form validations are not describing the error

Ayesh Nipun 1 Reputation point
2020-08-27T04:20:59.457+00:00

Hi,
I'm using the built-in azure b2c sign up user flow in my application. The signup form doesn't give the proper validation messages. It always gives one generic message and it's always located at the top. Is there any way to customize this message and put it below the input field, that failed the validation?
20706-image.png

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,639 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,306 Reputation points
    2020-08-27T12:24:28.223+00:00

    Hello @Ayesh Nipun

    Customizing the message and put it below the input field, would require custom HTML and CSS file where you can define the positions of parameters documented here: https://learn.microsoft.com/en-us/azure/active-directory-b2c/localization-string-ids. You can also customize the message by downloading the JSON file from Languages blade of the user flow and add/edit the parameters for errors.

    The User Flow by default shows the error specific to the attribute/field where invalid input is entered by the user. You may try using default html or https://moviesdiag132.blob.core.windows.net/b2c/unified.html (my test page) signup page confirm if HTML/CSS is not hiding the error. If you still face the issue, try creating a new user flow and test again.

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

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


  2. John Carew 1 Reputation point
    2020-12-04T18:02:24.913+00:00

    @AmanpreetSingh-MSFT sorry, but even your version still only gives a generic error. There is no mention of what field is having the issue.

    45200-image.png

    0 comments No comments