Onchange script is not triggering on String Field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 02:15 AM
Have a String Field (Requester Email ID) , and onchange of requester email id other details such as user name, department etc should populate.
When i change the email id and place the cursor outside of the filed (just clicking on the form anywhere) the script is working before Save and values are capturing after SAVE at the backend.
The Issue is i am changing the email id (curser is still inside the field) and click on Save the Onchange script is not triggering. While loading i can see the changed values but the form shows the old values after Save.
Appreciate the Suggestion
Thank you
Bhavana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 02:37 AM
Hii @SAS21
As You said,Your Script is working fine because the onchange event is typically triggered when you exit the field,Check out any other scripts running in background.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 02:42 AM
Hi @SAS21,
A onChange client script doesn't trigger until field focus changes. If you click on save, it may not react in time.
You might try a onCellEdit Client script. But keep in mind, this triggers with every change within the field.
So it triggers, for every character you add or remove in the field, each time.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.