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.

Set visible to false but still the fields are showing up in catalog item

ServiceNow Use6
Tera Guru

Hi,

I have set visibility of some fields to false but still they are showing up 'Try it'. What might be the reason? Kindly help.

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Regards

Suman P.

1 ACCEPTED SOLUTION

Michael Jones -
Giga Sage

It's difficult to tell form your screen shot which fields you expect to be hidden on the screen (I assume the bottom half)?

Do you have any other UI Policies with UI Actions for these same variables?

The most common cause would be a conflict between policies - generally you only want to reference fields in one policy where possible and otherwise make sure that your conditions are appropriate. Sometimes you get unexpected results when you have "reverse if false" selected and have multiple policies in play on the same fields. You might have to play with the Order if that is the case, or refine the conditions. 

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

View solution in original post

2 REPLIES 2

AnirudhKumar
Mega Sage

You may have some client script that is showing them bac again with setDisplay() or setVisible()

Search your client script for script containing those field names.

Michael Jones -
Giga Sage

It's difficult to tell form your screen shot which fields you expect to be hidden on the screen (I assume the bottom half)?

Do you have any other UI Policies with UI Actions for these same variables?

The most common cause would be a conflict between policies - generally you only want to reference fields in one policy where possible and otherwise make sure that your conditions are appropriate. Sometimes you get unexpected results when you have "reverse if false" selected and have multiple policies in play on the same fields. You might have to play with the Order if that is the case, or refine the conditions. 

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!