hiding annotation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
I am using this script to hide annotation but not working. I have the annotation id set and get the alert printed but it doesnt hide. Any ideas on how to fix this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Hi @samadam ,
make sure isolate script field is false for the client script
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Hi @samadam
Please use code.
function onLoad() {
if (g_form.isNewRecord()) {
// Hide entire annotation section
g_form.setSectionDisplay('acq_msg_section', false);
}
}
Also,
Isolate Script = FALSE in client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
I have isolate script as false, same code works in another form. Not sure why this is not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Got it working using the OOB script mentioned here.
Show/Hide Annotation UI Policy not working - ServiceNow Community
