
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 02:25 PM
Hello, I am trying to create a very simple UI script such that I can write re-usable functions to call use with client scripts.
The simple UI script works fine on the CMS. However it DOES NOT work in the Service Portal.
Are UI Scripts no longer supported in the Service Portal? We are on Helsinki.
Catalog Client Script
UI Type: BOTH
function onLoad() {
helloWorldTest();
}
UI Script
Global: TRUE
function helloWorldTest() {
alert('Hello World');
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:29 PM
b-rad That is incorrect, you can add UI Scripts to the Service Portal through the Theme. The theme has a related list of JS files, which if local is a reference to the UI Script table.
I would not recommend making the UI Scripts Global.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 02:30 PM
Update: Removed my incorrect answer to clear up confusion. Always trust Nathan's SP answers over mine anyway 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 02:32 PM
MEH. Thanks Brad, as always!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:29 PM
b-rad That is incorrect, you can add UI Scripts to the Service Portal through the Theme. The theme has a related list of JS files, which if local is a reference to the UI Script table.
I would not recommend making the UI Scripts Global.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:32 PM
Thank you Nathan! Is there any documentation available on how to set that up?