setDisplay() function is not working

Naveen Kumar
Tera Contributor

in a catalog client script , 

I am able to hide a filed using g_form.setVisble('requested_by',false);

But I want to use  g_form.setDisplay('requested_by',false); so that the space will be used for other field.

15 REPLIES 15

Hi,

Variable type is Reference field.

Submitted By(requested_by) field in the Variable set "User Information".

 

find_real_file.png

 

find_real_file.png

 

Only setVisible is hiding the field.

If I use setDispaly it's not hiding the field.

Hi,

setDisplay() is not working in portal or native?

Did you check for any other variable and other catalog item?

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

its not working in both portal and native.

when I use setDisplay() for other fields ,its working for hiding those fields.

Hi,

which other variables it's working fine?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader