Skip to main content
Nintex Community Menu Bar

Hide Panel if Field DOES NOT Contain a Value

  • March 5, 2020
  • 2 replies
  • 71 views

cjwilson1009
Forum|alt.badge.img+4

HELP!

 

I have 2 panels on my form. I want to show one panel if the template selected contains "202", "101", or "103". The other panel, I want to HIDE if the template selected contains "202", "101", or "103."

 

I am successfully hiding the first panel with this formatting rule:

contains(frmTemplate, "202") || contains(frmTemplate, "103") || contains(frmTemplate, "101") || contains(frmTemplate, "Book")

 

On the other hand, I'm unable to show the other panel going the opposite direction. This formula is NOT working and I can't figure out why. 

!contains(frmTemplate, "202") || !contains(frmTemplate, "103") || !contains(frmTemplate, "101") || !contains(frmTemplate, "Book")

 

I can show the panel if I only use one rule, !contains(frmTemplate, "202"), but that's it. If I add the rest, the panel won't show at all. I even tried creating 3 separate rules, one for each, but that didn't work either.

 

Any ideas??

 

 

 

 

 

2 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • March 6, 2020
What happens if you use not(contains(frmTemplate, "202") || contains(frmTemplate, "103") || contains(frmTemplate, "101") || contains(frmTemplate, "Book"))

cjwilson1009
Forum|alt.badge.img+4

THANK YOU!

This worked like a charm :heart: