Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

onChange script was called again when submit

zhao renjie
Tera Contributor

I have an onChange script that pop up an alert message when target field was chaned.

but the message was pop up again when i submit.

So i know that the onChange script was run again when submitting.

I don not know why . help please. 

 

Thanks.

7 REPLIES 7

Pratiksha2
Mega Sage

Hello @zhao renjie - 
Can you please share your onchange client script?
So that I will help you better.

Thank You!

it is my script .it not run every time when i submit.just sometime.i can't get the rule.
Thank you very much.
スクリーンショット 2024-02-02 152226.png

Dr Atul G- LNG
Tera Patron
Tera Patron

Please share script please. It look like some syntax issue only.

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

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

it is my script .it not run every time when i submit.just sometime.i can't get the rule.

 it feels like syntax problem,but i can't get the excatly reason and don't know how to resolve it
Thank you very much.

スクリーンショット 2024-02-02 152226.png