The CreatorCon Call for Content is officially open! Get started here.

Remove empty space from task and RITM view

hydu9535
Tera Contributor

Hi All

 

I have written the client script to hide upon the condition of one location variable, but on the RITM and Task level the spaces are very high as it is hiding the variables

Can we remove the spaces?

1 ACCEPTED SOLUTION

Manmohan K
Tera Sage

Hi @hydu9535 

 

You might have used below code to hide the variables 

g_form.setVisible('variable_name', false);

 

Use the below code instead and it will remove the spaces

g_form.setDisplay('variable_name', false);

 

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

Hi @hydu9535 ,

I believe you haven't gone through the links i shared!!

https://www.servicenow.com/community/developer-blog/hide-empty-variables-on-ritm-and-task-record/ba-...

talks about the same answer what you have marked correct.

 

Manmohan K
Tera Sage

Hi @hydu9535 

 

You might have used below code to hide the variables 

g_form.setVisible('variable_name', false);

 

Use the below code instead and it will remove the spaces

g_form.setDisplay('variable_name', false);