ahaaften
Cloud Wanderer

Hiding multiple fields with 1 rule

Jump to solution

Hi, I would like to hide a bunch (40) field when they're empty in displayMode. If possible I would rather not create 40 separate rules to do so. 

 

So I would like to use an expression: Hide when '=and(Is Display Mode,!{current_field})' something like this. And apply the rules to all fields. 

 

ahaaften_0-1597783328648.png

 

Is there a way to do this?

 

Thank you!

 

0 Kudos
Reply
4 Replies
SimonMuntz
Nintex Employee
Nintex Employee

Re: Hiding multiple fields with 1 rule

Jump to solution
Hi

Set the rules view to show all rules.
Then on the form hold Ctrl and select the controls you want to include in the rule. Once done go to the rule and click the elipse where a dropdown will appear that gives you the option to Add to selected controls.
0 Kudos
Reply
ahaaften
Cloud Wanderer

Re: Hiding multiple fields with 1 rule

Jump to solution

Hi @SimonMuntz thank you.

But what I need is a formula that covers the hiding of the fields. 

 

I need "Equipment & Maintenance" to be hidden when "Equipment & Maintenance" is empty and "Building & Structures" when "Building & Structures" is empty, etc

 

When I use my current rules, for example the first. Then "Equipment & Maintenance" will also hide when "Building & Structures" is empty, and that shouldn't be the case.

 

Hope it clarifies. 

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Hiding multiple fields with 1 rule

Jump to solution
Thank you for your clarification.

The one rule that will work for all controls is:
and({Common:IsDisplayMode},isNullOrEmpty({Self}))

View solution in original post

0 Kudos
Reply
ahaaften
Cloud Wanderer

Re: Hiding multiple fields with 1 rule

Jump to solution
{Self}! Thats it! Thank you
0 Kudos
Reply