- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2019 02:06 PM
Hi,
I am trying to create a button to the right side of a field, within the incident form, that will redirect to https://google.com, in a new tab, when clicked.
Here is the button:
Here is the UI Macro code:
Everything I have tried thus far renders the same result, which is a blank page within the current servicenow tab.
Note: Trying to open google.com for testing purposes only. Once I am able to perform that step, I will proceed to leveraging the above 'FS Incident ID', in order for our support engineers to navigate to our Monitoring console.
I was able to get a UI Action form button to work just fine, but I would like to be able to provide an additional option to our support staff.
Thanks,
Chris A.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2019 02:50 PM
With the help of barshaNow, we were able to figure out that the following code works for a UI Macro:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2019 02:23 PM
Can you just do below in line 12 and try
window.open(url);
and remove line 13 return false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2019 02:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2019 02:40 PM
Figured it out...
Apparently the name of 'open' that I was using to test with, it conflicting with something.
I changed it to openfs, so that its not too generic, and wha-la, it worked.
I changed it back to 'open', and sure enough, it doesn't work again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2019 02:50 PM