Skip to main content
Nintex Community Menu Bar

Nintex Rule Formula with 2 conditions

  • July 12, 2022
  • 3 replies
  • 267 views

Hello, 

 

I have a form in which I first need to select a content type. There are 2 options: "Discretionary" and "Controlled".

 

Now, when the content type equals "Controlled", there is another field called "Record Type" that is mandatory.

 

Therefore, I need to create a rule so that when "content type" is "controlled" AND "Record type" is Empty, the user gets a validation message saying "mandatory field"

 

I managed to get the rule for "Record Type" being empty but I'm not sure how to add the AND and the other condition and get it to work. See attached 

3 replies

Garrett
Forum|alt.badge.img+16
  • Scout
  • July 12, 2022

Hi @Malcorr, you are almost there... 

 

FYI for your reference Creating a validation rule in Classic and Responsi... - Nintex Community

 

What you want to achieve? 

To create a rule so that when "content type" is "controlled" AND "Record type" is Empty, the user gets a validation message saying "mandatory field"

 

The Outcome

 

The Rule

 

Hope that helps


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • July 13, 2022
If you do not want to use operators as per the solution above you can create the rule using only functions.
and(isNullOrEmpty({Self}), equals(ContentType,"Controlled"))

Garrett
Forum|alt.badge.img+16
  • Scout
  • July 13, 2022

Thanks for the tip @SimonMuntz