Search code examples
azure-ad-b2c-custom-policyazure-ad-b2c

We have Integrated ADB2C with a web application to handle a user signup & authentication, need help to add a customization in B2C signup form


Here is a question from the ADB2C Signup page. Where I have an use case to add more validation in the B2C SignUp form, we have to restrict / show an error if the user types in an invalid phone number using all 9’s or all ten digit phone number shouldn’t be the same as 1111111111 / 9999999999 in the telephone number field. Here we are using B2C custom policies to handle these user flow activities. Please suggest us if there a work around to handle this scenario. Thank you!


Solution

  • You can use a predicate method to perform validations. Regex validation may suffice.

    Otherwise, you will need to use front end javascript to apply the validations you desire.