how can i hide variables in a record producer ?

getnet bantie
Tera Contributor

I want to hide a variable based on another variable on a record producer.

2 REPLIES 2

Community Alums
Not applicable

Hi Bantie,

You can use the below script to hide:

if(Variable1 == somecondition){

g_form.setDisplay('variable2',false);

}

 

Mark it helpful if solves your issue.

 

Thanks,

Sanjay

H_9
Giga Guru

Hello,

The easiest way to hide any variable in a record producer is by creating a catalog UI policy.

You can follow the steps in the following link to create a catalog UI policy (no coding is needed).

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/service-catalog-managemen... 

 

Hope this helps you. 🙂

Thanks. 🙂