
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2020 09:44 AM
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)
Not sure how we can hide the Line.
Regards,
Priya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2020 09:07 PM
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
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2020 09:05 PM
Is it form annotation or UI formatter added as 1st element on the form
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2020 09:07 PM
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
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 02:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 03:40 AM
Hi,
on which form you are doing this
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader