Design tools are only css and html, so it is too difficult to implement.. If the js works, i used document.execCommand(‘copy’).. I tried but it didn’t work. because JS.. So I tried to try using hubl function, but I couldn’t it. Could you help me plz…?
Can you add some more details about what exactly you are doing? @alyssamwilie , is much smarter than I am so maybe doesn’t need more details ![]()
Thank you for your answer!
@amwilie ,
To tell you more about it, I want to create a function that copies url to my clipboard when I click the button.(adding custom code to my email template.)
like this, but In email template, it is too difficult because JS does not work and functions have to be made with html…
How can I make a function?
Hi @changmin ,
Call this function using JS function myFunction() {
/* Get the text field */
var copyText = document.getElementById(“myInput”);
/* Select the text field */
copyText.select();
copyText.setSelectionRange(0, 99999); /* For mobile devices */
/* Copy the text inside the text field */
navigator.clipboard.writeText(copyText.value);
/* Alert the copied text */
alert("Copied the text: " + copyText.value);
}
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.

