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
03-07-2024 10:29 AM
Let's just say the response was not fully satisfactory. Here's the text of the response from my ticket:
No if you don’t change anything it still will run that script since it still validate things on the from even nothing as change. The only way that this pop up does not show is when you change the UI type to Mobile/ Service portal. You will not see the pop up.
They imply that the solution was to change the UI Type. The client script that caused our problem was rewritten to validate the fields in a business rule.
FWIW: I created a test Onsubmit client script and could not reproduce the problem. So I think it may have been fixed. We are on the Vancouver release.