How to make a button that copies a certain URL?

Hey guys,

I would love to create a button that lets the user copy the URL to their member profile so that they can easily share it with other members.

Any idea how I could do this?

Thanks so much in advance! :slight_smile:

Would Shoelace be a help?

I must thank @matthieu_chateau for first bringing Shoelace to my attention!

1 Like

+1 for Shoelace components. We use the Shoelace copy button with our Airtable/Softr app to achieve this functionality.

1 Like

Thanks for the mention @MarkSchofield

Here is everything you need to know: Enhance your dynamic blocks with Shoelace free web components

1 Like

Thanks so much, guys!
I’ve added a few elements from shoelace already, thanks to @matthieu_chateau !

I have not yet managed to create a button on a details page that copies a URL that is a formula field from Airtable - but I’ll look into it again now to see how / if that is possible! Thanks guys! :slight_smile:

Hi Tim,
The copy clipboard shoe lace component should work.
In case the user is on the profile itself, I adopted a code to create a button that copies the page url and opens the share menu. Native sharing options upon button action - #6 by softrsimon