web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to create custom C...
Power Apps
Answered

How to create custom COPY/PASTE shortcut button.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need a method where user can copy a text from somewhere and paste copied text into a text-box of my PowerApps app with just a click of button. How to make the button ? 

Thank you in advance. 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,409 Most Valuable Professional on at

    Hi @Anonymous ,

    This is a solution in so much as you will stop looking. It is on the PowerApps Ideas Board - you might want to vote for it.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    Could you share more detail about your requirements?

    For the moment, you can try to use Variable to save the copy value, and assign the Variable to other Text box Default property to implement the Copy/Paste button.

    A simple test:

    1. set Copy/Paste button OnSelect: Set(Var_Copy,TextInput1.Text)

    2. set TextInput2 Default: If(!IsBlank(Var_Copy),Var_Copy)

    GIF_41.gif

    Sik

  • WarrenBelz Profile Picture
    156,409 Most Valuable Professional on at

    Thanks @v-siky-msft ,

    I never thought of that

    @Anonymous  - please accept @v-siky-msft response as the solution

  • itejada Profile Picture
    6 on at

    Cheers,

     

    This question has been around my head for two days and has no answer. The solution shown here only reads the value of a textbox to put it in a variable associated with another textbox. What the user asks is if it is possible for example to copy the coordinates of a point in google maps, return to my app and with a button, paste what it copies in some textbox for example. Is there a way to access the clipboard and put the content in some control of my form?

     

    Thank you

  • mbernardi Profile Picture
    3 on at

    Hi,

     

    With the function Location.Lagitude, Location.Longitude and Location.Altitude, you can get the real values from your smartphone.

    You can put this on your text label, and then you can use the tip of this topic to solve your problem.

  • AliDg2 Profile Picture
    43 on at

    Have a scenario

    Love the function above currently it works however there is one work around i cant get and i feel like it is probably a simple solution can someone assist. 

     

    ok i need assistance with two work arounds

     

    one the manager's text box where the copied data is going into. When he clicks the button that copies and pastes from the gallery item it show the previous user's information. Until you edit the information.

     

    second workaround i need. Every time i enter the edit button (which is were i have the set of rules and then save the data it copies the user's information again below what has already been edited?

    Image 1

    AliDg2_1-1617884805849.png

    Edit button on select has

    Set(Var_Copy,TServiceReport_1.Text);
    UpdateContext({LetsEdit: !LetsEdit});
    Reset(TFinalReport_1);

     

    The save button on select has:
    Patch('TestingAPP-WeekendServiceReportList',ThisItem,{FinalReport: TFinalReport_1.Text});UpdateContext({LetsEdit:false})

    The manager report text box has on default 

    Gallery3.Selected.GFinalrepor_1 
    this feeds info from a hidden text box in the gallery

    ___________________
    Basically the outcome i want is when the manager hits the edit button i want the information from the user to populate in the managers text box. Giving him the ability to edit the information at his will. Save it and then send a report to himself once all the departments have entered their data. 

    A email function button appears once the checkboxes are ticked. 

     

    I hope i have explained myself properly.

     

    thanks

     

     

     

  • LennartWalldén Profile Picture
    181 on at

    Why can't you use Ctrl+C and Ctrl+V? We do that a lot, and it works fine.

  • FlorianK Profile Picture
    6 on at

    just put "Copy("Your desired Text to be copied")" in any OnSelect, it should copy the text into the users device clipboard.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard