Skip to main content
Nintex Community Menu Bar

Forms Field Validation - Not contains a number

  • March 17, 2015
  • 2 replies
  • 16 views

Forum|alt.badge.img+1

I'm working on a Nintex Form template. We have a text field where people are accidently including numbers. There will never be a need for this particular field to include a number. Is there a way to achieve this?

 

e.g., 'Hello' should validate OK

but 'Hell0' should display an error.

2 replies

Forum|alt.badge.img+9
  • March 17, 2015

Hi Brian

You can use a regular expression for validation:

^[^d]+$

  • ^ assert position at start of the string
  • [^d]+ match a single character not present in the list below
    • Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]
    • d match a digit [0-9]
  • $ assert position at end of the string

Kind regards

Manfred


Forum|alt.badge.img+1
  • Author
  • March 17, 2015

Hi Manfred,

This is fantastic and works in the Desktop layout of a form. Unfortunately I've not been able to get it to work on the Nintex Mobile version of a form. Any suggestions?

Regards,

Brian