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

VaishnaviShinde
Kilo Sage

Hello @zhao renjie ,

Can you please share your code or screenshots?

 

Thank you!

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

スクリーンショット 2024-02-02 152226.pngThank you very much.

Ankur Bawiskar
Tera Patron
Tera Patron

@zhao renjie 

did you check any onSubmit script is setting value to that field and that might be triggering the onChange

please share the onSubmit scripts you have on your form

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader