Home
/
Kits
/
Field Mask

Copy any text to clipboard in Webflow

Add a custom copy to clipboard button to any element on your Webflow site. Connect a trigger, a source, and an optional confirmation message instantly.

Tutorial coming soon
Button with copy icon and text 'Copy Script' next to a smaller button labeled 'Copied!' indicating script has been copied.

Webflow has no built-in way to let users copy text from your page with a single click. Whether you are displaying a discount code, a snippet of code, a wallet address, or any other piece of text users need to copy - there is no native solution without writing custom code.

The Fractional Copy Kit solves this with a single lightweight script and a set of custom attributes applied directly in the Webflow Designer.

Here is what you need to know:

  • The Fractional Copy Kit works by grouping three elements together inside a parent wrapper div - a source element containing the text to copy, a trigger element the user clicks, and an optional confirmation message that appears after copying. No JavaScript knowledge required and no impact on any other element on the page.
  • The trigger can be any element. A button, a div, an icon - whatever fits your design. (Though we do recommend making it a DIV as this will not create an empty button on your page). Add the trigger attribute and clicking it copies the source text automatically.
  • The confirmation message is fully optional. When included, it appears briefly after the user clicks the trigger then hides again automatically. Set the display duration with a single attribute on the wrapper. Style the confirmation element however you want directly in Webflow.
  • Multiple copy groups can exist on the same page independently. Each group is fully isolated - a page with three different copy buttons each copying different text works exactly as expected with no interference between them.
  • The Fractional Copy Kit uses the native browser Clipboard API. No external libraries, no third-party services, and no data ever leaves the user's browser.
  • The Fractional Copy Kit is fully GDPR, CCPA, and PIPEDA compliant. It sets no cookies, makes no external requests, and collects no personal data of its own.

This Kit is GDPR Compliant

Fractional multi-step form Kit is classified as essential functionality. It sets no cookies, uses no localStorage, makes no external requests, and collects zero personal data. It can be safely excluded from your cookie consent configuration.

Step 1

Add this <script> inside the <head> tag of your page or project

This script is the universal script: you only need to include it once, even if you have multiple instances on the page.

<!-- This script is to add copy to clipboard functionality - Managed by Fractional Creative -->
<script data-fc="copytext" data-fc-version="1.0.0" data-fc-consent="essential" src="https://cdn.fractionalcreative.io/kits@1/kits.js"></script>
Copy Script
Copied!
Step 2

Add these required custom attributes

Create your group
This will hold all required items
Target copy text
This defines which text should be copied
Create a copy button
Defines the copy trigger
Optional fields
Optional Step(s)
Add a confirmation message
Defines your confirmation element
Edit the duration of the confirmation

Need support?

Our team will be happy to assist you.

Tutorial Coming Soon
Get Support

Try it out!

WOW, This kit rocks. Like seriously. How simple.
COPY THE TEXT
🎉 Text Copied!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Frequently asked questions

Everything you’re probably wondering.

Is this the same as a password field?
Does masking affect the value that gets submitted?
Can I use it on a password input type?
Can I use it on multiple fields on the same form?
Can users copy the masked text from the field?
Does it work with Webflow's native form validation?
What happens if the script fails to load?
Is it GDPR compliant?

Need more than a Webflow Kit? Hire a Digital Agency.

Fractional Creative is a digital agency. We build Webflow websites, design brands, manage Meta and Google ad campaigns, and build custom automations, and more. Start saving with Fractional services.

Young man with dreadlocks sitting on a wooden bench outdoors typing on a laptop, with green foliage in the background.