Issue with validation rule & StartsWith() function

  • 9 February 2018
  • 2 replies
  • 7 views

Badge +1

Hi All,

I'm new to Nintex and i'm having an issue trying to mimic a logic rule on a previous InfoPath form using the StartsWith() function. 

The old infopath rule is checking to see if a single line of text field named "Pallet" does not start with the letter "P". I've created a new rule and applied to this field on my new Nintex form but its not entirely working as I expected. It does show a validation error when the string entered doesn't start with "P" but it is also showing the message when you enter "P" with any additional characters after it.

Anyone know why this might be the case or what I can do to correct it?

213345_pastedImage_1.png213346_pastedImage_2.png

Examples:

Works as expected here

213350_pastedImage_3.png

Validation goes away when you enter "P"

213351_pastedImage_4.png

Any character or number added after P causes it to reappear.

213352_pastedImage_5.png

Thanks,

Chris


2 replies

Userlevel 5
Badge +14

you have swapped parameters.

first parameter should be a string which is being scanned for a presence of second parameter.

Badge +1

Got it. Swapped the two and its working now. Thanks for your help!

Chris

Reply