I have developed action cards that have a "copy text" button on them, that when clicked copy the text that is in the component.
Here is my HubL + HTML code:
Following is my JS Code:
Whats odd is when I run this code, only one of the buttons "Copy text" works. So for instance if I have three action cards on my page, only the first action card's "Copy Text" button works and the other two dont.
Hi, @Mrafey👋 Thanks for your question. Can you add your code to your post, please? You can use the code block tool to help with formatting. Troubleshooting code from screenshots is hard to impossible for our community members to help with.