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

lp6
Tera Guru

hi,

 

you can use this ui policy

lp6_0-1683010130959.png

 

hit thumbnail if it works.

SAM321
Tera Contributor

@lp6 still IGST value is showing when cost and gst is filled. actually it should show 0 at first, when i manually change CGST and SGST to 0 ...it should show 1040

Screenshot (190).png

Did you uncheck the onload checkbox on ui policy

SAM321
Tera Contributor

@lp6 yes i unchecked...still its not working

I have to make any changes in when to apply section?