Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
2 like 0 dislike
1.4k views
in Microsoft 365 by 25 39 47
Is it possible to restrict the question answer to a custom Regular Expression in Microsoft Forms, I just have a Phone field and need to force the phone format answer based on the Regex, How can I do that in Microsoft Forms?

1 Answer

3 like 0 dislike
by 82 148 312
selected by
 
Best answer

Custom Regular Expression in Microsoft Forms

Unfortunately, In Microsoft Forms, Only Numbers are available as a restriction, and there is NO restriction option for a Custom Regular Expression in Microsoft Forms

Validate Email on Microsoft Forms

Alternatives to validate Custom Regular Expression in Microsoft Forms

Instead, you have to use Microsoft Dynamic Customer Voice which is the new name of Microsoft Forms Pro and has many features over the free Microsoft Forms.

In the Microsoft Dynamic Customer Voice survey, you will be able to add Custom Regular Expression as the following:

  1. Open your survey.
  2. Add a new Text question.
  3. Click on the three dots "...", then select Restrictions.
    Restrictions in Microsoft Forms
  4. In the Restrictions list, select "Custom".
    Custom Regular Expression in Microsoft Forms

See Also

If you don’t ask, the answer is always NO!
...