Show and Hide annotation onload client script throws error in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 12:23 AM
Hi All,
We have created a onload client script for annotation show/hide on a sn_hr_core_task table.
But we get some error in portal , Please find the attached screenshots.
function onLoad() {
//Type appropriate comment here, and begin script below
if ((g_form.getValue('u_is_an_extension_granted1') == '1' || g_form.getValue('u_is_an_extension_granted1') == '2') && g_form.getValue('short_description') == 'Localisation date confirmation') {
// Hide the annotation
$('my_annotation').up().show();
} else {
// Show the annotation
$('my_annotation').up().hide();
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 12:35 AM
Hello
Try unchecking the check box "isolate script" and try to run the script again
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 12:50 AM
I have uncheck box "isolating script" and again same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 01:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 01:11 AM