Client Script on Change Function in Embedded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 06:02 AM
Hello Community,
I have created a client script for the "Impact Category" table and a field named "<10 min." I want it to save directly without pressing the "SAVE" button when data is entered or updated in this field. This script works correctly in the main table but does not work in embedded lists. I would be very grateful if you could help me with this issue.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return; }
g_form.save();
I would be very grateful if you could help me with this issue.
Best Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 06:14 AM
@beycos I doubt if you will be able to trigger onChange client script from an embedded list. Try with onCellEdit and see if it works for you. Please be informed that the onCellEdit will also work on the main list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 06:44 AM
Thank you for your response Sandeep,
Unfortunately, onCellEdit does not work also on the main table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 06:54 AM
Hi @beycos
oncell edit will do , without save.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 07:55 AM