I am not sure if this is a good place to ask this ...
# đź’»developers
I am not sure if this is a good place to ask this question. I wrote a quick and dirty JavaScript to copy a @workflow text variable to the computer's Clipboard (see code below). When I run it in BotPress Developers Mode it works like no tomorrow, However, if I Publish it and try to either run it on my website or in the BotPress Share Mode it fails with this text 'Sorry, an error occurred. Please try again later' but I can see what the error is. Any help is appreciated! const text = workflow.CopyToClipboardValue; const textarea = document.createElement('textarea'); textarea.value = text; textarea.style.position = 'absolute'; textarea.style.opacity = 0; document.body.appendChild(textarea); textarea.select(); document.execCommand('copy'); document.body.removeChild(textarea); Solution found see https://discord.com/channels/1108396290624213082/1175906233283264632/1178417117377347664