function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shockeereshockeere 

Why are my Javascript Event Listeners removed after "Save" button clicked?

I have added some basic javascript to a visualforce page with the case standard controller. The javascript works and executes fine, but when inline-editing a record and the standard "save" button is clicked, my javascript event listeners are wiped away from the elements on the page. Has anyone experienced this behavior and found a workaround?

Tanvir AnsariTanvir Ansari
After you click Save, the page you must be landing on is the detail page which obviously does not have javascript in it.
shockeereshockeere

I should add that this is when inline-editing a record (particularly a case). The URL of the page doesn't change when I click save, the changes are just committed to the db. Any thoughts?