cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

SSN Validation Not Working

Working with RegEx Validation on an SSN field in Forms, I am using the following expression

^\d{3}-?\d{2}-?\d{4}$
However, it only seems to except an empty field - and calls any other entry invalid.  This is a generally accepted expression referenced in multiple places and I tested it in RegEx validators.  The underlying field is Single Line of Text
What Am I doing wrong?

Labels: (1)
Tags (1)
0 Kudos
Reply
5 Replies
Workflow Hero

Re: SSN Validation Not Working

Hi there - 

I tried out your expression in a RegEx tester (successful), Nintex On-Prem (successful), and Nintex O365 (successful.) 

Here is how I had it set-up in O365 for a Single Line of Text:


Is yours different?


Cheers,

rhia

Accept as Solution Reply
Workflow Hero

Re: SSN Validation Not Working

This is exactly how it looks, yet it is not working

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: SSN Validation Not Working

Hmm without screen-sharing with you or being able to see specifically how it is, all I can suggest is contacting support@nintex.com and working through it with them. If it looks as the above, it should work -- it could be a super small thing missing, very hard to tell!

let us know what it ends up being!

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: SSN Validation Not Working

Hi Devin,

Please make sure that you are setting the validation Required and Use Regular Expression to "Yes" and use the Regex in the Regular expression section not in the "Required - Expression" section, as shown below: 

It should work with the above settings

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: SSN Validation Not Working

Regular expression working for me.

[0-9]{3}-[0-9]{2}-[0-9]{4}

0 Kudos
Accept as Solution Reply