How can I add a Copy Button?

I would also like to see a “copy to clipboard “ on click event for buttons or labels.


Unfortunately, I don’t think Thunkable has a copy to clipboard option. Most languages do, alas, not Thunkable.

As a bit of a hack, you COULD transfer the text from a LABEL into a TEXT_INPUT control and prompt the user to copy the text from the TEXT_INPUT.

Not a great solution, but better than nothing…


I want “Copy to Clipboard”

1 Like

Sorry I cannot do this way.

1 Like

Oh. Ok Thanks a lot

1 Like

I’m wondering if a JavaScript solution would work with the webviewer.

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="" type="text/javascript"></script>
  <script type="text/javascript">
 function copyToClipboard(value) {
  var tempInput = document.createElement("textarea");
  tempInput.value = value;

ThunkableWebviewerExtension.receiveMessage(function(message) {

this does in fact work!

the only blocks needed

@darren this would be a cool addition to perhaps?!


The copy part is easy… the paste isn’t. But you haven’t said yet where the content would be pasted. Is it going into the middle of a text input field (probably difficult but not impossible)? Is it replacing a single label (easy)?


This is true! Within or outside of the app. Do you mean otherwise?

I’m waiting to hear back from @mikailsarkar02g0m who hasn’t specified the answer. But I meant within the app.

@Jared_Gibb your app is not working it is not copying

Hey there. Sorry that it’s not working, I’m not sure why. I guess you’ll have to make it yourself.

All that it takes is a webviewer, the webviewer block post message, and whatever text do you want to clip to the clipboard you send as the message from the post message block. Direct your web viewer to the following URL

1 Like

now it works but if we set web viewer visible false it not works maybe problem with web viewer still we can se the web viewer height to 0.1 and width 0.1 and it will be invisible

try this to make it dissapear

set height to 0px
position to absolute
top offset to -50px


hey try
Screen Shot 2020-09-30 at 11.42.44 AM
probably it is a rip

well it is just with in text to copy text to clipboard then you can use @Jared_Gibb’s method

This example will not work for live test on the web as it is missing the ending tag:


It should be placed before the ending tag:


I want “copy to clipboard” after I want to paste it Messaging or Facebook Messenger.

I don’t have this option on Screenshot_1

well there is as @Jared_Gibb said