We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Onchange client script for calculation

SAM321
Tera Contributor

Screenshot (188).pngScreenshot (189).png

Hi all , so this is my script for calculating values in field on changing value in GST field....

How can i modify this script...  Initially CGST  and SGST values '320'wil l be auto calculated at that time IGST should show only '0'...when i manually change CGST and SGST to '0' only at that time IGST should show '640'...

can i get script for it

16 REPLIES 16

SAM321
Tera Contributor

@lp6 checked... still its not working

lp6
Tera Guru

Can you send snapshot of what it is showing?

SAM321
Tera Contributor

@lp6 Screenshot (193).png

lp6
Tera Guru

in when to run give onload check box as true

SAM321
Tera Contributor

@lp6 in new form its showing as 0

Screenshot (194).png

when i give values its showing as before

Screenshot (193).png