Is it possible to use OnChange client script at Onload?

Arishmit
Tera Contributor

I have a requirement and would want to run the OnChange client script on form loading. How can I achieve this? Any help would be appreciated. 

 

Arishmit_0-1737963124482.png

 

1 ACCEPTED SOLUTION

amitshishod
Tera Guru

Yes Buddy, It is possible
I am assuming that the task(For Onload and Onchange) is same, then you simply remove isLoading from line 2 and it will work same for load and change.

Please mark my response correct and helpful, if it helps you.
Please reply if any issue happens.

View solution in original post

2 REPLIES 2

amitshishod
Tera Guru

Yes Buddy, It is possible
I am assuming that the task(For Onload and Onchange) is same, then you simply remove isLoading from line 2 and it will work same for load and change.

Please mark my response correct and helpful, if it helps you.
Please reply if any issue happens.

Harish Bainsla
Kilo Patron
Kilo Patron

Hi @Arishmit 

check below link

https://www.servicenow.com/community/developer-forum/can-we-change-onchange-client-script-into-onloa...

if my answer helps you mark helpful and accept solution