question

AyeshNipun-3428 avatar image
0 Votes"
AyeshNipun-3428 asked priyankakumari-0227 commented

Azure B2C signup form validations are not describing the error

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


azure-ad-b2b
image.png (23.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered priyankakumari-0227 commented

Hello @AyeshNipun-3428

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://docs.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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hi @amanpreetsingh-msft i just need to change the error message (validation error message ). you have mentioned "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."

Could you please let me know which JSON file you are talking about .

What is the best possible way to change the validation error message i am using built-in user flows.

0 Votes 0 ·
JohnCarew-7037 avatar image
0 Votes"
JohnCarew-7037 answered

@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



image.png (213.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.