The CreatorCon Call for Content is officially open! Get started here.

Open URL in New Tab from Form Button Next to Field (via UI Macro)

Chris Armstron2
Giga Expert

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:

find_real_file.png

Here is the UI Macro code:

find_real_file.png

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.

1 ACCEPTED SOLUTION

Chris Armstron2
Giga Expert

With the help of barshaNow, we were able to figure out that the following code works for a UI Macro:

find_real_file.png

View solution in original post

5 REPLIES 5

Hi,

Yea, lesson learned for sure, never name your stuff with anything that can be confused by the system..stuff like:

value...name...open...return...variable...etc.

Glad you got it sorted out!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!