Client Script onChange is not triggering at all

colin-lucwe
Tera Contributor

Hi everyone,

I’m currently facing an issue with a Client Script onChange script that is not being executed at all.

The strange thing is that it is not a logic issue inside the script — the script does not seem to trigger in the first place. I already added logging statements at the very beginning of the Client Script, but nothing appears in the console/logs when I change the field value.

Has anyone experienced a similar issue or has an idea what could prevent an onChange Client Script from firing?

Things I already checked:

The Client Script is active
The field name is correct
The script type is set to onChange
I tested with simple log statements at the first line
The field value is definitely changing
Are there any less obvious reasons why an onChange Client Script would not trigger at all? For example, any configuration settings, UI policies, field types, client conditions, or other dependencies that could block it?

Any hints or troubleshooting tips would be highly appreciated. Thanks!

19 REPLIES 19

colinlucwe_1-1785394174680.png

 

Juhi Poddar
Kilo Patron

Hi @colin-lucwe 

Could you please share a screenshot of the Client Script configuration along with the script itself? That would help us review the setup and better investigate why the onChange Client Script isn't being triggered.

Thank You!

Juhi Poddar




Thank You!
Juhi Poddar

colinlucwe_3-1785394231376.png

It does only trigger the console log while loading

Tanushree Maiti
Tera Patron

Hi @colin-lucwe 

 

Share the screen shot of your client script. Specifically with Trigger condition and script.

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

yashkamde
Giga Sage

did you check for any config, ui policy or client policy blocking the same field to set ??

 

check in audit history if the field value is being changed..

Screenshot 2026-07-30 123514.png

 

If my response helped mark as helpful and accept the solution.