difference between setVisible() and setDisplay() ?

C_30
Kilo Contributor

difference between setVisible() and setDisplay() ?

1 ACCEPTED SOLUTION

kushal Tayade
Mega Guru

Hi,

 

Both are used to hide the fields but setDisplay() will use the space once the field is invisible.

 

 

Thanks,

Kushal

 

View solution in original post

3 REPLIES 3

SaiRaviKiran Ak
Giga Guru

Hi,

 

Both methods are used to hide the fields on the form using client script(Client side scripting), but setDisplay() will retrieve the space if the field is hidden.

Thanks,

Ravi

 

 

ARG645
Tera Guru
Exactly what you need. Lot of information in the below link https://community.servicenow.com/community?id=community_question&sys_id=969eb665db58dbc01dcaf3231f9619ea

kushal Tayade
Mega Guru

Hi,

 

Both are used to hide the fields but setDisplay() will use the space once the field is invisible.

 

 

Thanks,

Kushal