Custom policy - How to disable live input validation ?

Isaac Zolana 90 Reputation points
2024-03-08T20:39:53.4566667+00:00

Using custom policies, we managed to customize our "forgot password" flow and design.

Unfortunately, there is an issue we are unable to fix. We are unable to disable the live validation of input fields.

When a user inserts value into the input field, from the moment he enters a single character, he is prompted with error messages.

live validation

Also, when we inspect the page, we can see an error message on the browser console related to the email pattern as the user types his email.User's imageUser's image

We have a button at the bottom of the page that shows "SendVerificationCode". We would like for validation to start only when the user has clicked on that button once. Is that something we can configure on the custom policy ?

Other information :User's image

I am sure there is a way to fix this using javascript but I would like to know if there is a solution that can be applied to the custom policy. I know that version 2.1.6 selfasserted didn't have live validation, but we chose to use the latest version.

Other information :

setting.inputVerificationDelayTimeInMilliseconds metadata did not help me.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,271 Reputation points Microsoft Employee Moderator
    2024-03-11T21:06:51.7066667+00:00

    Hi @Isaac Zolana ,

    We have a metadata to control this behavior so that the validation does not appear until after the user has stopped typing.

    Self-Asserted Technical Profile metadata:
    setting.inputVerificationDelayTimeInMilliseconds No Improves user experience, by waiting for the user to stop typing, and then validate the value. Default value 2000 milliseconds. Check out the Live demo of this metadata.

     

    This metadata is available for page layout version 1.2.0 and above. You can check this document for details:

     

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/self-asserted-technical-profile#metadata

    Let me know if this helps and if you run into any issues.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.


Your answer

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