Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide Annotation with translation and an onload Client Script

Meloper
Kilo Sage

Hi,

i created the Annotation like this:

find_real_file.png

The ID, i want to use to get access to the Anno the Text is my Key for the translation.

No i tried:

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

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

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...

 

1 ACCEPTED SOLUTION

😄 that is the Solution, in the translated Text, i have now added the <span id=.... to, now it works, thank you

View solution in original post

6 REPLIES 6

my Problem is the Translation on the sys_ui_message Table.

If i delete these Translation or change the key, the annotation can be hide with up().hide().

But with that active translation it can#t be hide

😄 that is the Solution, in the translated Text, i have now added the <span id=.... to, now it works, thank you