Calling UI Script from UI Action

agw
Kilo Contributor

Hello Community,

I created a UI Script, quite simple with just a function with an "Hello World" alert. Then I created an UI Action in the incidents form. Unfortunately this simple thing doesn't work. Can you please help me to get it up and running?

Next step would be to paste the code of a jsvascript library into the UI Script, to have it available in the UI Action. Is there an alternative to use javascript libraries?

Regards

aw

12 REPLIES 12

Abhinay Erra
Giga Sage

You can call UI script from any client side script. So in your UI action click the client checkbox, create a onClick function and call the UI script in that function.


agw
Kilo Contributor

Thank you for your answers. I found out, that the problem only exists in my developer instance. But it works as expected on a productive environment.



By the way: is there a possibility to use UI Scripts which are not global in UI Actions?



Thanks


Andreas


As far as I know you cannot call UI script in a UI action without setting it to global.


+ctomasi


I don't have an answer to that one. I don't use UI script all that often.