- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2017 08:22 AM
I am trying to combine over 200 seperate software catalog items into one master form. The support team uses KACE (so no easy automation) and the software is classified as either Self Installable or not depending on the script they created.
I created the following Catalog Client Script for the Catalog Item and it works just as expected while in the application. Once the user selects a software that is u_self_installl (I know, I was having a bad day with the 3 l's) = true they get the alert message and when they click OK they get a popup window to the self installer. on the Service Portal they still get the alert, but the navigation doesn't happen. Is there another way to create the popup from the script that would work on the portal?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2018 12:30 PM
Just an update in case anyone else ever needs this information. I opened a HI ticket and while it's not officially supported,
location.href="url";
works in this situation. I've tested it and can verify it works in Jakarta's Service Portal. Thanks everyone for the help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2018 05:20 AM
Please use window.open("url") to open URL
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2018 05:22 AM
window.open does not work when running from Service Portal.
I have confirmed this myself.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2018 05:26 AM
Yep, I already tried that one too, doesn't work in Service Portal. I ended up just using an alert message with a link in it, but would still like to pop open the window automatically if possible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2018 05:40 AM
I am using below code in one my widget to open pop up window.
Body HTML template
<button ng-show="data.showChat" ng-if="::user.logged_in" href ng-click="openPopUp()" id="chatButton" class="live-chat-btn" data-toggle="modal" data-target="#chatModal" role="button">
Client controller
$scope.openPopUp = function() {
$scope.modalInstance = $uibModal.open({
templateUrl: 'languageSelector',
scope: $scope
});
};
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2018 11:45 AM
I'd rather not modify the widget, I'm surprised if there isn't a way to open a window from the Service Catalog with a script when it works when in the application.