Copy to clipboard from custom function
Copy to clipboard from custom function

Hi, I wonder is there any way to copy the data which I get with custom function inside custom button?
Thanks
This discussion has been closed.
Hi, I wonder is there any way to copy the data which I get with custom function inside custom button?
Thanks
Answers
You can use
document.execCommand("copy")
. This will copy text that is selected in an input element. In order to copy arbitrary text to the clipboard you will need to create an input element, fill it with the desired text then callselect()
on the element before callingdocument.execCommand("copy")
. If you would like more specific help you will need to provide more information about your use case.