Azure AD B2C : Localization - Can we make error message specific to filed rather than "This information is required"

Manish Aggarwal 36 Reputation points
2022-09-19T11:40:38.787+00:00

We are currently implementing Localisation for Azure AD B2C.

We need to implement error messages where in the error message is specific to the field. For e.g. on Sign up page, if the user does not enter email address or password, we need to show specific error message like "Blank Email message: Please enter a valid Email Address" or "Blank Password message: Please enter a valid Password" which is currently displayed as "This information is required."

Appreciate your help in advance.

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

Accepted answer
  1. JimmySalian-2011 42,101 Reputation points
    2022-09-26T14:48:10.58+00:00

    Hi Manish,

    I guess @James Hamil is the best option if not then I will suggest you to create a support/feedback ticket with Microsoft and I am sure developers will pick up this requirement.

    developer-support-help-options

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

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. James Hamil 24,566 Reputation points Microsoft Employee
    2022-09-19T18:08:21.003+00:00

    Hi @Manish Aggarwal , you can customize the error messages by using custom policies following this document. For your case, you must follow the localization string ID list and edit the XML for the "required_field" ID.

    <LocalizedString ElementType="UxElement" StringId="required_field">YOUR MESSAGE HERE</LocalizedString>  
    

    Please let me know if you have any questions or if I misunderstood your question.

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James


  2. Manish Aggarwal 36 Reputation points
    2022-09-21T17:42:33.497+00:00

    Team - Can anyone please suggest if this is achievable in B2C?

    0 comments No comments

  3. Manish Aggarwal 36 Reputation points
    2022-09-26T14:28:32.987+00:00

    Team - Any help here would be much Appreciated.

    @AmanpreetSingh-MSFT @Siva-kumar-selvaraj @JimmySalian-2011

    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.