Hello Guys,
In this blog post, I am going to share the 'Copy To Clipboard' functionality in the lightning component using javascript. While working with the records in Salesforce sometimes user needs the record link to share in an email or need to use in the documentation or somewhere else.
This component will copy the record link in the clipboard in just a single click, the user does not need to copy the record link from browser URL. The component can be used for every standard and custom object, the user just needs to add the component on the object detail page and needs to click on the link button icon, the record link will be copied in the clipboard.
Find the full component code below.
copyToClipboardCmp
copyToClipboardCmpController
copyToClipboardCmpHelper
copyToClipboardCntrl
Full code on GITHUB.
Happy Coding...!
Hats off to your presence of mind..I really enjoyed reading your blog. I really appreciate your information which you shared with us.
ReplyDeleteCRM Software