Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Copy URL to Clipboard

Bradley Ross
Tera Guru

I use the "Copy URL to Clipboard" UI Macro all the time. I right-click on the header of the incident and choose Copy URL. A browser dialog pops up saying that security prevents copying directly to the clipboard, so I'll need to press Ctrl-C and then close the dialog. It is hokey, but it works.

Today, I happened to be doing this on hi.service-now.com and lo and behold, the URL copied directly to the clipboard without the extra browser security dance. Hey!!! I want that in my instance!

I tried it on my Geneva developer instance and I still get the cheesy browser dialog.

I think I could work around this by creating a new UI Macro with the contents of the clipboard.js library. Then I could edit the context_form_header UI Macro so that the right-click menu points to my new and improved clipboard library. Then I wouldn't have to use the cheesy browser pop-up ever again.

I could do that, but since ServiceNow has already solved this problem on HI, perhaps there is a more elegant (and long-term supported) solution that others could recommend?

1 ACCEPTED SOLUTION

Bradley Ross
Tera Guru

We just updated to Helsinki Patch 4 and we noticed that this is fixed natively! Thank you ServiceNow!


View solution in original post

2 REPLIES 2

Julian Hoch
ServiceNow Employee
ServiceNow Employee

Interesting - I did not even notice that. With Safari, I still get the popup in HI, but not in Chrome. Perhaps there is a plugin or a property you can activate? Or it might be some HI-specific customization. I would be interested to know that as well.


Bradley Ross
Tera Guru

We just updated to Helsinki Patch 4 and we noticed that this is fixed natively! Thank you ServiceNow!