How to Hide Annotation (which is line separator) on Form, when form loads.

Murali16
Kilo Contributor

Hi,

Please help me how to hide Annotation (which is line separator) on Form, when form loads.

My scenario is as follows,

I have 3 Annotations (which are line separator's) on form, when form loads that 3 annotations needs to be hide.

Please help with valuable suggestions.

 

1 ACCEPTED SOLUTION

Vineetha Rohra1
Giga Guru

Hi,

 

Use the following to show annotation on form:

 

my_annotation.style.display = 'block';

 

and following to hide:

 

my_annotation.style.display = 'none';

 

 

Please replace 'my_annotation' with id of your own annotation.

View solution in original post

3 REPLIES 3

Prateek kumar
Mega Sage

Check this out.

https://community.servicenow.com/community?id=community_question&sys_id=3c6c83a5db9cdbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Vineetha Rohra1
Giga Guru

Hi,

 

Use the following to show annotation on form:

 

my_annotation.style.display = 'block';

 

and following to hide:

 

my_annotation.style.display = 'none';

 

 

Please replace 'my_annotation' with id of your own annotation.

Where exactly would I use this?