Client Script on Change Function in Embedded list

beycos
Tera Contributor

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,

7 REPLIES 7

Hi @beycos 

 

You logic is missing in this. 

 

https://youtu.be/TgZbATLoS04

 

*************************************************************************************************************
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]

****************************************************************************************************************

Hello Atul,

Thank you for your response and  the YouTube link you sent in your reply. I'm already subscribed to your YouTube channel, and it's very helpful to me. I always learn from this channel. 

I have a screenshot of my table attached. Under the Impact category table, there are embedded tables for calculation and overall impact. The overall impact is automatically calculated when I enter a new value in the calculation, but every time I enter a value in the calculation, I need to save it in the main table. ( screenshot 2) However, I want to double-click on the value and save it directly, ( screenshot 3). I would appreciate any advice you can give me on this matter.

Hi @beycos 

 

Thanks for kind words. Oncell edit work in list view not on the screenshot your shared.

*************************************************************************************************************
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]

****************************************************************************************************************