• Avatar
    Kunal Ramji

    You can do this by adding a script in your template sheet:

    function copyTextToClipboard(text) {
    var textArea = document.createElement("textarea");

    textArea.value = text;


    try {
    var successful = document.execCommand('copy');
    var msg = successful ? 'successful' : 'unsuccessful';
    console.log('Copying text command was ' + msg);
    } catch (err) {
    console.log('Oops, unable to copy');



    On the same template sheet, you can create your button:

    <center><button class="button" onclick="copyTextToClipboard('{{Header name of what you want to copy}}')">What you want it to say in your button</button></center>

    Credit goes to Edward McMillan who created this:

    Link to his spreadsheet:

  • Avatar
    Randolph Abelardo

    Thanks for sharing @Edward's cool use case, @Kunal !

    Unfortunately, the script used doesn't support long characters and line breaks.

    @Sony, just to set your expectations correctly, please note that this topic is beyond Awesome Table's scope of support. But this is a community where everyone's encouraged to help each orher. If anyone can help Sony with his task, please do.

    - Randy

Please sign in to leave a comment.