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.

On change client scripts are not working

prit123
Tera Contributor

On change client scripts are not working.

 

Created a new client script with simple alert/addinfomessage. This new on change client script written on Assigned to field is also not giving any message. 

 

What can be the reason of on change script not running?

6 REPLIES 6

Harsh Vardhan
Giga Patron

@prit123  Can you please validate you have selected correct table on your client script ?

Please add your client script screenshot here .

swathisarang98
Giga Sage

Hi @prit123 ,

 

Could you please share the screenshot of the client script ?

 

Regards,

Swathi Sarang

@swathisarang98 @Harsh Vardhan  - Below on change script written just for testing-

 

prit123_0-1719414197936.png

 

@prit123  Script looks correct. 

How are you testing it ? Your script should work on form load as well as changing the assigned to field value.