Skip to main content
Nintex Community Menu Bar

SSN Validation Not Working

  • Aug 29, 2017 4:06 AM UTC
  • 5 replies
  • 43 views
  • Translate All

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?

 

 

5 replies

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Aug 29, 2017 5:36 AM UTC

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

Translate

  • Author
  • Sep 3, 2017 6:46 PM UTC

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

Translate

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Sep 4, 2017 7:17 AM UTC

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!

Translate

WezzH
Nintex Employee
Forum|alt.badge.img
  • Nintex Employee
  • Sep 12, 2017 1:34 AM UTC

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

Translate

Forum|alt.badge.img+3

Regular expression working for me.

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

Translate