Using hyperlink within pop up message

kevinmalone
Kilo Explorer

I have a script I created as part of a workflow.   I have a pop up message that appears as part of my workflow script that re-directs user to an internal URL.   My issue is this:   I want to have the user be able to click on the URL from within the pop up box and also close the existing form.   Here is what I have so far:

var msg = '[http://groupcentral.vrtx.com]'

gs.addInfoMessage('<script>var t=setTimeout(function(){alert("' + msg + '")},500);</script>' + msg);

The pop up appears like this but want to be able to click on URL and go to the URL....is this possible?

find_real_file.png

2 REPLIES 2

bernyalvarado
Mega Sage

Hi Kevin, indeed it's possible.



It can be done by adding the link in a UI page and then invoking the UI Page from GlideDialogWindow.



The following should be helpful:



GlideDialogWindow: Advanced Popups Using UI Pages - ServiceNow Guru



Thanks,


Berny


bernyalvarado
Mega Sage

Hi Kevin, do you have any further questions or do you believe you can close this thread by marking the response as correct?



Thanks,


Berny