How to call a function in link from a client controller on load in a Service Portal Theme

Vidya Shree
Kilo Sage

Hi All,

 

We are having DOM manipulation script written under Link in our Portal theme. Unfortunately function inside Link is triggered only when the page is refreshed. Is it possible to trigger the function inside Link on page redirection as well?

Any idea would be helpful

 

Thanks in advance

 

Vidyashree

1 REPLY 1

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Vidya Shree 

 

May be below links can help you:

 

https://www.servicenow.com/community/developer-forum/invoking-a-function-in-the-link-function-sectio...

 

https://www.servicenow.com/community/developer-articles/using-the-link-function-in-service-portal-wi...

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023