Skip to main content
Nintex Community Menu Bar

Add a rule

  • April 18, 2018
  • 3 replies
  • 16 views

Forum|alt.badge.img

Hi there, 

I have a question regarding to add rules to Choice control. There are only two choices 'yes' and 'no' in the Choice. I want to add a rule that if the you click 'Yes' in Choice, then 'Status' cannot be 'In Progress'. The rule I wrote is 'and(equal(Status, "In Progress"), equal(ReadyForReview, "Yes"))', then Invalidate. I don't know what is wrong with it. It is my first time using Nintex form and I hope someone can help me on it. 

Best, 

Frank

3 replies

Forum|alt.badge.img+17
  • Nintex Partner
  • April 19, 2018

Updated your post, removed assumed answered. 

Is this O365? Even if not, you can compare Named controls using = sign. Status="In Progress". Make sure you are using the Named controls and not the Item Properties when using the formulas.


Forum|alt.badge.img+14
  • Scholar
  • April 19, 2018

Is ReadyForReview realy a choice control or is it a yes/no checkbox control?

Fot the later, it directly evaluates to boolean true/false so you cannot compare it with string "yes"


Forum|alt.badge.img+12
  • Nintex Partner
  • April 19, 2018

Hi Frank,

you're close but the correct function is "equals", not "equal". So edit your query to the following should make it work:

and(equals(Status, "In Progress"), equals(ReadyForReview, "Yes"))

Best regards

Enrico