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.

How to trigger onLoad function when ui page is called with ui action?

Jake Sadler
Kilo Sage

I have a ui page that is called when a ui action is clicked. The UI page is a timer but when the ui page is called the timer doesn't start automatically. How do I trigger onload client scripts for the UI page?

1 REPLY 1

Periyasamy P
Tera Guru

You can just write your onload script in client script section. As below, it will run onload.

find_real_file.png