- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 06:13 AM
Hello. I'm having trouble adding a URL in a UI Action. I've followed the instructions exactly as posted here: UI Actions - ServiceNow Wiki, but the link just goes to an empty SN page.
Here is my UI Action:
What am I missing?
Thanks in advance,
josh
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 06:16 AM
Hi Josh,
Try adding logs in the ui action to determine if it is getting executed or not.
If that is not working you can also achieve the same in client side. Check the client box , give function name as openWindow();
in script add following line of code
function openWindow(){
window.open('www.google.com','_blank');
}
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 06:16 AM
Hi Josh,
Try adding logs in the ui action to determine if it is getting executed or not.
If that is not working you can also achieve the same in client side. Check the client box , give function name as openWindow();
in script add following line of code
function openWindow(){
window.open('www.google.com','_blank');
}
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 06:46 AM
That helped, Ankur. I neglected to add the function to the Onclick section. Having done that, it works just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 06:19 AM
Hi Josh,
Try using this URL "http://www.google.com" since https is not valid for google.com in your existing UI action.
If that works then great or else use the other approach suggested.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 06:31 AM