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 Event Scripting Best Practice?

ctsmith
Mega Sage

I haven't really figured out how to do this with SN's client scripts.  Is there as way to create an onChange event script?  Think... character counter or cc number field that displays a changing info message based on character changes as a user types instead of waiting until the user focuses away from the field.  Is there a best way to do this with a client script?

Thanks!

7 REPLIES 7

Sushma R1
Tera Expert
Build a small widget and a variable attach this widget to that variable if you want it in sp Use Ng-keyup https://docs.angularjs.org/api/ng/directive/ngKeyup Hope this helps you solve issue Hit correct if it did 🙂

That is definitely a good option for a catalog script but this would be a base form client script.

Hmmm... add the widget as macro to the form field as a formatter?