saruk
Nintex Newbie

Forms, if not rule

Jump to solution

Hello,

 

we use Nintex Forms 2013.

 

I need a Rule to hide a DropDown when in a other DropDown not the entry "IT" is.

at the moment I found everything if this dann is that true.

but I need the other way.

if not(DropDown, "IT) <- Hide.

 

have someone a good Idea for me?

 

thanks Lars

0 Kudos
Reply
14 Replies
patrick_hosch
Nintex Newbie

Re: Forms, if not rule

Jump to solution

you will have to use two functions for that

  • not()
  • equals()

it should look like this not(equals(DropDown, "IT))

Please mark as "Answered" if the post answered your question

0 Kudos
Reply
saruk
Nintex Newbie

Re: Forms, if not rule

Jump to solution

ok, I have create that rule, it works, but only with a other dropdown.

that dropdown who I use look in a other list for the items

is that a problem?

0 Kudos
Reply
patrick_hosch
Nintex Newbie

Re: Forms, if not rule

Jump to solution

can you provide a screenshot of the form and highlight what you want to hide, based on which field?

from what you are saying, the control you are checking in the rule is a list lookup control?

0 Kudos
Reply
saruk
Nintex Newbie

Re: Forms, if not rule

Jump to solution

yes thats true, it is a list lookup control.

I want to hide the "IT Intern" part. this is in a section with the rule.

form1.PNG

form2.PNG

it is the Version 2.3.2.0

thanks Lars

0 Kudos
Reply
patrick_hosch
Nintex Newbie

Re: Forms, if not rule

Jump to solution

ok, in that case you will also have to include the parselookup function that's because when you select a value in the "Kategorie" lookup control, the returned value is not in the format "IT intern" but "[ITEMID];#IT intern". The parseLookup function removes the preceding [ITEMID];# string.

 

so in your case the formula should be

 

     not(equals(parseLookup(NAMEDCONTROL),'VALUETOCOMPARE'))

 

 

Please mark as "Answered" if the post answered your question

View solution in original post

0 Kudos
Reply
saruk
Nintex Newbie

Re: Forms, if not rule

Jump to solution

perfect, thanks Patrick.

0 Kudos
Reply
Not applicable

Re: Forms, if not rule

Jump to solution

Can you add een second "valuetocompare" to that? If yes, how?

Been trying with a second rule but that doesn't seem to work so now I'm looking to do check for value1 OR value2 in 1 rule.

0 Kudos
Reply
patrick_hosch
Nintex Newbie

Re: Forms, if not rule

Jump to solution

sticking to the example in my answer you will need to use the "OR" function like this:

OR(not(equals(parseLookup(NAMEDCONTROL1),'VALUETOCOMPARE1')),not(equals(parseLookup(NAMEDCONTROL2),'VALUETOCOMPARE'2)))

0 Kudos
Reply
Not applicable

Re: Forms, if not rule

Jump to solution

Can we use the same NAMEDCONTROL?

Like:

OR(not(equals(parseLookup(NAMEDCONTROL1),'VALUETOCOMPARE1')),not(equals(parseLookup(NAMEDCONTROL1),'VALUETOCOMPARE'2)))

Meanwhile testing this one

0 Kudos
Reply