Copy to clipboard from custom function

Copy to clipboard from custom function

damjanovski88damjanovski88 Posts: 1Questions: 1Answers: 0

Hi, I wonder is there any way to copy the data which I get with custom function inside custom button?

Thanks

Answers

  • awelchawelch Posts: 38Questions: 1Answers: 3

    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 call select() on the element before calling document.execCommand("copy"). If you would like more specific help you will need to provide more information about your use case.

This discussion has been closed.