window.open written in a client script and its not working on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2016 04:36 AM
Hi Folks,
I have a catalog item and in that there is onchange client script which opens different URLs based on the value selected using window.open() function.
But this script is not working on Service Portal. I have changed the UI type of the script to "Both" as well.
Please help.
Thanks
Preety Arora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2016 11:37 PM
I have done the same and my application was Global. But still facing the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 12:54 AM
Can you send me a screenshot of the client script form and the property that you have sent. I think the error might be something very subtle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 01:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 01:27 AM
Upload a screenshot of the entire client script form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 06:11 AM
Hi Preety,
It looks like Service Portal is blocking many globals from client scripts, but allowing top. I tested the following in a catalog client script rendered in service portal in my instance and was able to open a new window:
top.window.open('xxxxx', '_blank');