Using Copy to Clipboard within a Repeating Group
Here's another example of how you can use copy to clipboard to really help your users and improve your user experience. This time how to use copy to clipboard within a repeating group. So I've got a list of contacts here and I'm going to create a way for when my users click on an email address it copies that email address to their clipboard.
Setting Up Copy to Clipboard in Bubble
So I go into my Bubble app and if you haven't already we're using for this demonstration the air copy to clipboard plugin by zero code so I've installed that plugin and then in my repeating group I simply add the copy to clipboard element and I add it into my first cell that way I can access it within every cell of the repeating group.
Adding an Icon to the Email Address
I'm going to do a little trick here that I've demoed in previous videos of how to include an icon within text in line with text so I'm going to say when this text is hovered I'm going to change the text to current contacts email and put space in open my square brackets write FA close square brackets put in copy because that's the ID of the Font Awesome icon I'm wanting to insert and then I simply close the expression like that and you'll see that that adds in a copy icon when it is hovered.
Creating a Workflow for Copy to Clipboard
So then I'll add a workflow in and I'll say copy from static text insert the current cells contacts email in preview that and so now you can see I get a copy icon when my mouse goes over each cell and then if I click on Lucy at example calm and I paste it in to the top you can see that I've copied it to clipboard successfully.
Invitation to Join Planet No Code
So are you already a member? If not why not? We have got over a hundred publish tutorial videos on our website many of which are only for members so do head over to our website Planet No Code check out all of the benefits you get from becoming a member including access to those exclusive Bubble tutorial videos.