Why do "Onsubmit client scripts" run when viewing the record's history?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 07:05 AM
We have "Onsubmit" client scripts that check for specific conditions in a form and pop-up a modal if any of the conditions are found. Since our upgrade to San Diego, we found that these scripts run and pop-up modals when the user views the record's history. This is most annoying to the user. Especially since no update of the record takes place. Any ideas on how to handle this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 07:20 AM
It's controlled by this UI Macro "history_context", but I wouldn't suggest modifying the code.
instanceName.service-now.com/nav_to.do?uri=sys_ui_macro.do?sys_id=281f8a8dc0a8016728a57b48cdea74bd
Since it's directly related to an upgrade, i would suggest opening a ticket with ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 08:28 AM
Thanks for the update Mike_R. I checked the UI Macro and I see that it calls server side code with gsftsubmit. I suppose this is what causes the Onsubmit client scripts to fire?
In any case, I have opened a ticket with ServiceNow and am waiting for a response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 08:32 AM
Yep exactly. I think it's that gsftsubmit line too. We'll see what support says
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 09:34 AM
Hi
Have you found any solution or root of the issue.
Thanks,
Zuber