Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hiding tabs on Change form until a certain Category is selected.

Lee Kraus2
Tera Guru

Hello,

 

I'm trying to hide a tab (one I created) on our Change form so that it only shows up when a specific category is selected. I found what I think is a close example was from this Community question but I'm not sure I'm actually that close.

 

https://community.servicenow.com/community?id=community_question&sys_id=75397775db12f380f7fca851ca961979

 

This was for hiding the tab unless a specific Class what selected, and I don't know how to change the script in the example to work for my situation. I feel I'm close, I just need a little help, which would be greatly appreciated.

 

Thank you!

1 ACCEPTED SOLUTION

Muhammad Khan
Mega Sage

Hi Lee,

 

Try creating a UI Policy as follows;

find_real_file.png

find_real_file.png

Modify it as per your requirement.

 

Hopefully, this will resolve your query.

View solution in original post

5 REPLIES 5

Glad to know it worked. 

As for the flipping of conditions, yes you had to flip those because when condition matches (category is Security: Firewall) then True block executes, and you were setting section visibility to false in that block.