I have a label that contains data from a form. I'd like to add a button that copies that data to a clipboard. I've found some resources to do this but none of them speak specifically to using PA for Teams or using it with a label. Can anyone point me in the right direction?
@aec2018 which version of Power Apps are you using? This was released in the current preview Power Apps version 23034 - Release Notes | Microsoft Learn
List of current default versions for tenants by region is here: Released versions for Power Apps - Release Notes | Microsoft Learn
You can change this in the settings of your App within a version or two up/down 🙂
Hey @iAm_ManCat , is this a preview feature? When I try calling it in my PowerApp, it says that 'Copy() is an unknown or unsupported feature'.
You can use the Copy() function directly in Canvas Apps now
I know this post is old, but if someone finds their way here like me, I have posted my solution. I have created a PCF component that will do exactly what @Future_Vision is asking. I am attaching my solution for anyone else to use. The component has a button with a "copy-icon". On select of the button the text inserted in the parameter "CopyToText" will be copied to the users clipboard. In the "CopyToText", you can add a variable, a label.Text etc. I have made a short video as well.
What I am struggling with is, that I would like to add the option, that after the copying to clipboard has happened, I would like to make a "notify" function, so that the app would notify the user of "The text has been copied to your clipboard or something like that, but till now I have not figured out how to do this in my index.ts file. 😞
Furthermore, I cannot seem to get my control size to fit my button size... both is no issue, only nice-to-have features, so the control is fully functional as is. Would love someone to help me fix the last two issues though, so please feel free to comment.control in action
Thanks. I did find that video. My main concern is getting a copy button to work with a label.
Hi Future Vision,
As @v-jefferni mentioned Todd video is great workaround to achieve this function.
https://www.youtube.com/watch?v=URQLR8ndsOE
Thanks,
Kasun
Hi @Future_Vision ,
Please refer to below thread:
Solved: Copy to clipboard - Power Platform Community (microsoft.com)
So you could vote for the idea
Copy to Clipboard - Power Platform Community (microsoft.com)
or follow the video and create a component to achieve that need:
Power Apps Copy Text To Clipboard - YouTube
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.