Forms Field Validation - Not contains a number

  • 17 March 2015
  • 2 replies
  • 4 views

Badge +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

Badge +9

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

Badge +1

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

Reply