
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 11:29 AM
Hey everyone,
I have an Annotation message that pretty much just tells the user to use a related list after the record is created, but i'm trying to hide it on the form until AFTER it's created.
Here's what I got so far:
I made an HTML Annotation and gave it the id of "additional_ci"
Here's the script:
<span id="additional_ci">Please view the "Affected CIs" related list located at
the bottom of this form to see the full list of affected CIs.</span>
I'm trying to hide the the Annotation in an onLoad client script:
I'm using g_form.isNewRecord() to show if the form is not created yet, and this works for me in other client scripts but isn't working for me here. What am I doing wrong?
Here's the script:
function onLoad() {
// Hide annotation if the change record is new
if(g_form.isNewRecord()){
// Hide the annotation
$('additional_ci').up().hide();
}
else {
// Show the annotation
$('additional_ci').up().show();
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 11:56 AM
Can you check if "Isolate script" is set to false? You might have to add the field to the Client script form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 11:56 AM
Can you check if "Isolate script" is set to false? You might have to add the field to the Client script form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 11:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 11:58 AM
Yup, that was the issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 11:57 AM
I found the issue, the Isolate script field was set to true by default and wasn't showing on my form. I had to updated it from the record list, and now it works fine.