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

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

hvrdhn88
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 @hvrdhn88  - 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.