variables hide

nameisnani
Mega Sage

Hi Team , 

 

can anyone please help me here , 

 

when ever form loads below highlighted variables should be hide . 

 

NOTE - Please provide me the client script , UI plocy conflict is there .

 

nameisnani_0-1712896847414.png

 

Thanks in advance 

 

6 REPLIES 6

Sujatha V M
Kilo Patron
Kilo Patron

@nameisnani  onLoad client script 

 

g_form.setDisplay(‘<variable name>’, false);

 

Make sure that the applies to checkbox is for catalog view, requested item, tasks is also set to True to function the same. 

if it’s only catalog view, set only that as True. 

 

If it’s on the variable set, select the catalog item specific and set it.


UI policy conflicts, try inactivating and check it.

 

Please mark this as helpful and accept the solution if it clarifies your query,

Thanks,

Sujatha 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Dhananjay Pawar
Kilo Sage

Hi,

Rather than creating the client script I will suggest add more specific conditions in UI Policy so it will not conflict with others.

 

Thanks.

nowitsvashu
Tera Guru

Recommended to use UI Policy 

although if you want to use client script.
use onLoad catalog client script. 


g_form.setDisplay("variable_name',false);

nameisnani
Mega Sage

hi @nowitsvashu @Dhananjay Pawar @Sujatha V M 

 

I have written CS 

 

nameisnani_0-1712907335668.png

 

But still fields are coming 

 

nameisnani_1-1712907363782.png