Apply message to "copy-this" element on click

Hey there! Thank you so much for the update.

Wondering if there’s a way to apply the custom message after copying if the text isn’t a direct child of the copy trigger.

Here’s a structure overview of the button component I’m working with:

Hi @new!

Yess! You can use the “Copy Another Content” method:

  • Add fs-copyclip-element="click" to the “click trigger” element
  • Add fs-copyclip-element="copy-this" to the “copy this” element

You can check the docs here!:
Copy content to the Clipboard in Webflow

Let me know if that works for you! :flexed_biceps:

Thanks Pedro! Yeah, that’s how I’ve already set it up, just wondering if the custom message is supported when applying it that way. I’ve tried the message attribute on both the trigger and the “copy-this” element but none display it after click.

The text is being copied to clipboard without a problem—it’s just the message bit I’m wondering :slight_smile:

Hey @new! Could you share a read-only link? I’ll take a look!