Hide fields on Service catalog

Mahalakshmi Rav
Tera Contributor

Hello,

 

I'm trying to hide the fields "division and environment" when the request type is selected " new access" in one of my service catalog. I created one catalog UI policy and given the condition as request type is "new access" and created two catalog UI  policy actions made the "visible as false" and value action as "clear value". This is working when the catalog field values are changing from some other value to new access. But when I directly fill out the request type as new access, this is not working. Any advises would be highly appreciated. 


MahalakshmiRav_0-1735223454879.png

MahalakshmiRav_1-1735223723243.pngMahalakshmiRav_2-1735223732932.pngMahalakshmiRav_3-1735223768512.png

 

11 REPLIES 11

opps... your policy look good, might be cache issue.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Nilesh Wahule
Tera Guru

Hi @Mahalakshmi Rav ,

 

I would suggest to reverse the conditions and UI policy actions as

 

Request type is Not(!=) New Access

UI Policy actions visibility becomes True

 

---------------------------------------------------------------------------------------------------

Please mark my answer as helpful/correct if it resolves your query.

Thanks,
Nilesh Wahule

---------------------------------------------------------------------------------------------------

 

hello @Nilesh Wahule ,

 

I tried but it's the same 

Pranav_Thanedar
Mega Sage

Hi @Mahalakshmi Rav ,

 

Are the division and environment values mandatory when form loads? I see in one of your screenshots that they are mandatory. Have you made them mandatory on load or something else? 

 

You need to make them non-mandatory and then try to hide them. 

 

Please mark my answer as helpful/correct if it resolves your query.

 

Regards,

Pranav T

Chaitanya ILCR
Kilo Patron

Hi @Mahalakshmi Rav ,
since the variables are Mandatory the variables are not getting hidden.

in the UI policy actions make mandatory as False.

 

Please mark my answer as helpful/correct if it resolves your query.

Thanks,

Chaitanya