A Copy and Paste Button

Hi all, is there a simple way to use a button to save information to a user device clipboard?

it’s not possible with pure Corvid. Maybe you can put some code in an htmlComponent.

oh ok, that’s a shame, on the face of it, this sounds like a simple function

ok, so if i wanted to add a message like, ‘test message’ and use a button to create a clipboard entry in html, what code would i use?

If the code was sent to an HTML Component i could manually paste the copied text

@adcatch02 you can send a text to the htmlComponent and copy it to clipboard.
See here a simple code to put in the htmlComp (only few adjustments are needed):
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_copy_clipboard

@jonatandor35 Thanks J.D.

Ok this seems good. So would i embed an HTML iFrame onto the page in question and place the following code into the iframe?

Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.

Copy text

The document.execCommand() method is not supported in IE8 and earlier.