renee_millsom
Novice

Validation for single line of text field, must start with a 0 or 1 and be 6 digits

Jump to solution

I have a single line of text field in a Nintex Form for an Employee Number

I would like to add a validation to this field for the following:

1. Must start with a 0 or a 1

2. Must be 6 digits

 

Any help would be appreciated

0 Kudos
Reply
2 Replies
SimonMuntz
Nintex How-To Center Expert
Nintex How-To Center Expert

Re: Validation for single line of text field, must start with a 0 or 1 and be 6 digits

Jump to solution

Hi,

I suggest using a regular expression in the control validation settings. 

The expression would look like:

^[0-1]\d{5}$

0 Kudos
Reply
renee_millsom
Novice

Re: Validation for single line of text field, must start with a 0 or 1 and be 6 digits

Jump to solution

Thank you so much.. that worked perfectly!

0 Kudos
Reply