onSubmit script error: TypeError: Cannot read property 'getElementsByTagName' of null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2020 06:30 AM
Hi,
In one of our stage environments, one incident is behaving differently. when user click on save/update buttons, the user is getting below error message. It's not allowing the user to perform any action on that page. Below is the error.
I know that disabling the "Simultaneous Update Alert" client script will make it go through. But i don't want to use that as this is not happening on other incident.
Does somebody know why it occurs and how to solve the issue.
Thanks,
Venu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2020 06:35 AM
Hi,
Is the isolate script flag on this set to false?
do it if not already.
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2020 06:39 AM
Hi Anurag,
This has already been set to false.
Thanks,
Venu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2020 07:05 AM
It's happening because gel('onLoad_sys_updated_on') is returning null.
Separate the statement and add an if statement
var updatedOn = gel('onLoad_sys_updated_on');
if (!updateOn) {
return;
+
updatedOn = updatedOn.value;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2020 07:13 AM
And put the whole thing in try catch block.