Skip to main content
Nintex Community Menu Bar

Validation max/min characters per word / no limit in field

  • August 24, 2020
  • 2 replies
  • 31 views

Forum|alt.badge.img+1

Hi all,

 

I need a single line textbox field validation to validate

min/max characters per word are e.g. 4, but no validation limit on total number of words/characters.

 

E.g.:

ABCD                             is ok

ABC ABCD                     is not ok as one word with less than 4 charakters

ABCD ABCD                  is ok

ABCD ABCD ABCDE    is not ok as one word with more than 4 charakters

 

Can anyone help me?

Thx a lot!

2 replies

Forum|alt.badge.img+9
  • August 27, 2020

Use regular expression for validation, e.g.:

^(w{4,4} )*w{4,4}$

 

 

 

Forum|alt.badge.img+1
  • Author
  • August 28, 2020

Thanks. This helps but leads to a problem somewhere else:

 

I'd also like to apply different/conditional validation rules based on the selection of a drop down field.

As far as I see, this is not possible with regular expression?

Any idea? I'd prefer not to use JavaScript.