- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 02:10 AM
There is a Cancel button on record producer which appears if we select the "Can cancel" checkbox.
I want the user to be redirected to a certain link when the "Cancel" button has been clicked. So far I have been unable to find from where the code of the cancel button is coming.
Do help me out.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 03:34 AM
Yes, window.open with "_parent" option is redirecting to another page.
cancel_button.setAttribute("onclick","window.open('https://www.google.com','_parent');return false;");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 03:09 AM
Try redirecting to external url
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 03:19 AM
Not sure, whether redirection to external URLs is allowed through javascript from client side in SNOW, since it might be a security threat. If you are using chrome, check developer tools -> Console and see any errors appearing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 03:23 AM
Cross-origin framing not permitted. Is there any other way to redirect to external url?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 03:29 AM
try window.open
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 03:34 AM
Yes, window.open with "_parent" option is redirecting to another page.
cancel_button.setAttribute("onclick","window.open('https://www.google.com','_parent');return false;");