Calling UI Script from UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 07:50 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 10:21 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 12:44 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 12:51 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 07:45 AM
I don't have an answer to that one. I don't use UI script all that often.