SOLVED

Digit length verification

%3CLINGO-SUB%20id%3D%22lingo-sub-2014260%22%20slang%3D%22en-US%22%3EDigit%20length%20verification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2014260%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20community%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20insert%20a%20control%20in%20the%20answer.%3CBR%20%2F%3EI%20want%20to%20check%20that%20a%20number%20must%20have%20exactly%205%20digits%20(postcode).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20practice%20%3A%3C%2FP%3E%3CP%3E12345%20--%26gt%3B%20ok%3C%2FP%3E%3CP%3E01234%20--%26gt%3B%20ok%3C%2FP%3E%3CP%3E1234%20--%26gt%3B%20nok%3C%2FP%3E%3CP%3E123456%20--%26gt%3B%20nok%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EHow%20is%20it%20possible%20to%20insert%20this%20verification%20directly%20on%20forms%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2014260%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EForms%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017717%22%20slang%3D%22en-US%22%3ERe%3A%20Digit%20length%20verification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017717%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F909840%22%20target%3D%22_blank%22%3E%40Cris80%3C%2FA%3E%26nbsp%3Bto%20do%20this%20you%20need%20to%20have%20Forms%20Pro%20(now%20called%20Dynamics%20365%20Customer%20Voice).%20You%20can't%20do%20it%20with%20the%20standard%20Microsoft%20Forms.%20There's%20an%20article%20about%20it%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmeganvwalker.com%2Fcustom-regex-validation-in-forms-pro%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmeganvwalker.com%2Fcustom-regex-validation-in-forms-pro%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi community,

 

I would like to insert a control in the answer.
I want to check that a number must have exactly 5 digits (postcode).

 

In practice :

12345 --> ok

01234 --> ok

1234 --> nok

123456 --> nok


How is it possible to insert this verification directly on forms?

 

Thanks

2 Replies
best response confirmed by Cris80 (New Contributor)
Solution

@Cris80 to do this you need to have Forms Pro (now called Dynamics 365 Customer Voice). You can't do it with the standard Microsoft Forms. There's an article about it at https://meganvwalker.com/custom-regex-validation-in-forms-pro/

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

@RobElliott,

 

many thanks, I'm going to play with Dynamics 365 rgight away!

 

Thx,

Cristian