How to hide Annotation Line on Form load.

Priya Gautum
Kilo Guru

Hi All,

I wanted to hide the Annotation(Line separator) for some specific condition.

I have written the below code in UI policy, but still getting the Line:

In Execute if true:

function onCondition() {

	my_annotation.style.display = 'block';
}

The outcome is:(Please refer to the yellow highlighted line)

find_real_file.png

Not sure how we can hide the Line.

Regards,

Priya

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Priya Gautum 

I was able to hide the form annotation which is present for field using this

gel('my_caller_annotation').style.display = 'none'; // give the html id of your div tag

Ensure your client script has Isolate Script field set as false to allow DOM to work

find_real_file.png

Regards
Ankur

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

View solution in original post

6 REPLIES 6

@Priya Gautum 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

 

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

@Priya Gautum 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

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