cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Validation rules syntax?

Hi,

 

I'm new to Nintex and browsing on this site I don't find any Nintex-produced guide on syntax for validation rules on user input.

 

In my case I would simply like to check if the input of a field matches:

 

Eyymm###

 

yy = year (e.g. 15)  must be between 10 and 16

mm = month (e.g. 03)

### = number of 3 digits

full lenght of string must be 8 digits starting with E

 

e.g.

E1503001 is a valid input

 

If you can show me where to find syntax to build this kind of rules I can handle myself.

 

And an extension of this question: where are the in-depth reference guides of Nintex?

Labels: (1)
0 Kudos
Reply
4 Replies
Workflow Hero

Re: Validation rules syntax?

Hi Wim

look at 'Getting Started' page. At the right sight find Topic 'Product Help Files'.

Kind regards

Manfred

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Validation rules syntax?

In your case I would prefer not using validation rule but regular expression validation in control settings:

^E1[0-6](01|02|03|04|05|06|07|08|09|10|11|12)[0-9]{3,3}$

  • ^ assert position at start of the string
  • E1 matches the characters E1 literally (case sensitive)
  • [0-6] match a single character present in the list below
    • 0-6 a single character in the range between 0 and 6
  • 1st Capturing group (01|02|03|04|05|06|07|08|09|10|11|12)
    • 1st Alternative: 01
      • 01 matches the characters 01 literally
    • 2nd Alternative: 02
      • 02 matches the characters 02 literally
    • 3rd Alternative: 03
      • 03 matches the characters 03 literally
    • 4th Alternative: 04
      • 04 matches the characters 04 literally
    • 5th Alternative: 05
      • 05 matches the characters 05 literally
    • 6th Alternative: 06
      • 06 matches the characters 06 literally
    • 7th Alternative: 07
      • 07 matches the characters 07 literally
    • 8th Alternative: 08
      • 08 matches the characters 08 literally
    • 9th Alternative: 09
      • 09 matches the characters 09 literally
    • 10th Alternative: 10
      • 10 matches the characters 10 literally
    • 11th Alternative: 11
      • 11 matches the characters 11 literally
    • 12th Alternative: 12
      • 12 matches the characters 12 literally
  • [0-9]{3,3} match a single character present in the list below
    • Quantifier: {3,3} Exactly 3 times
    • 0-9 a single character in the range between 0 and 9
  • $ assert position at end of the string
0 Kudos
Accept as Solution Reply
Not applicable

Re: Validation rules syntax?

Thanks Manfred, that's very useful information. Should have checked my mail sooner for this elegant solution.

Meanwhile I had written some java code to handle this validation. Time consuming, but the advantage is that you can customize the alert message...

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Validation rules syntax?

In control settings for regular expression validation you can also create a customized error message.

0 Kudos
Accept as Solution Reply