g_form.setDisplay(' ',false) is not working for onLoad Client script

Sri63
Mega Expert

I am trying to hide a field through onLoad. But setDisplay functionality is not working 

 

find_real_file.png

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

If you want to hide a filed you should be using g_form.setVisible(name, visibility).

g_form.setVisible('u_ct_app', false);

View solution in original post

7 REPLIES 7

Brian Lancaster
Tera Sage

If you want to hide a filed you should be using g_form.setVisible(name, visibility).

g_form.setVisible('u_ct_app', false);

You could also use a UI Policy instead.  That way you do not have to worry about writing a script to make it visible again since it reverse is false will take care of that.

sachin_namjoshi
Kilo Patron
Kilo Patron

What's data type of u_ct field?

Please add alert() statement to print value of u_ct field in your client script?

 

MAke sure that you are checking for choice list value NOT label if it's choice field.

 

Regards,

Sachin

Yes sachin. i tried but OOB functionaly not working