Skip to main content
Nintex Community Menu Bar

Hi all,

 

I have a form where we ask for a customer's phone number to be captured (UK phone number so format is 11 digits eg. 01234 567890). Is there anyway to enforce that a number is captured?

If we have the field as a number within the Sharepoint list rather than single line of text it deletes the proceeding 0 once saved to the list which doesn't work for us.

 

Any ideas/help welcome :smileyhappy:

Which form type are you using? When using the new responsive designer you should be able to apply a text mask to ensure a valid phone number. This will automatically prevent users from entering characters and also ensure 11 digits:

 


Should have included that! We're using Responsive Designer rather than New Responsive Designer. Is it possible within there?


Not with the same fanciness but you should be able to use the regular expression validation on your text box control: ^[0-9]{11}$

 

It will not directly prevent the user from adding other characters than digits but when saving a validation error will pop up


Thank you! Do you know if it's possible to limit by 10 or 11 digits/characters? 


This should do the trick: ^[0-9]{10,11}$


Nintex Mobile/Tel Validation Control Settings - Single Line Textbox --> Validation -->

Use a regular expression : Yes

Regular Expression :    dddddddddd

Regular expression error message : please enter valid Mobile no

Code :   dddddddddd   

10 digits -->( d for digit)


sweet! thanks!