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

How to copy hyperlink to clipboard

Thulasidharan
ServiceNow Employee
ServiceNow Employee

Hi Everyone, 
 
I need to know how to copy the hyperlink to the clipboard. For an example, if we click on any of the button in the page, I need to copy the content in the component to the clipboard which consists of link in it.

I found the UX client script include 'Article action include' which allows me to copy the content in the component, but as only the plain text. Not as the hyperlink.

I refered to this community post: https://www.servicenow.com/community/developer-forum/copy-to-clipboard-in-ui-builder/td-p/2898753
Please help me, how to do it with the UIB client script 

Thanks!! 

0 REPLIES 0