- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 06:41 AM
Hi,
i created the Annotation like this:
The ID, i want to use to get access to the Anno the Text is my Key for the translation.
No i tried:
but without success.
g_form.setDisplay('change_task_annotation', false);
$('change_task_annotation').up().hide();
document.getElementById("change_task_annotation").style.display="none";
the checkbox "isolate Script" is unchecked.
If i use the inspect Option of my Browser, i can find my ID...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 10:35 PM
😄 that is the Solution, in the translated Text, i have now added the <span id=.... to, now it works, thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 06:47 AM
Hello Meloper,
Here is an example from my instance:
function onLoad() {
addAfterPageLoadedEvent(function(){
if (g_form.getValue('type') == 'search_result') {
$('search_result_annotation').up().show();
$('genius_result_annotation').up().hide();
} else {
$('search_result_annotation').up().hide();
$('genius_result_annotation').up().show();
}
});
}
In your case, you need to replace the if statement and the id of the annotation.
In my case, the Isolate Script checkbox was also unchecked.
If this answer is relevant for you, please mark it as correct/helpful.
Thanks,
Filipe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 06:55 AM
is there any System Property i have to use that this works? I tried it already but i does not work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 07:12 AM
Hello,
As far as I know, you don't need any system property.
Did you enclosure the code inside the function addAfterPageLoadedEvent(function(){ ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 08:07 AM
check this link where I shared solution; should work for global or scoped app both
How to hide Annotation Line on Form load.
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