cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to create custom COPY/PASTE shortcut button.

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

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

View solution in original post

7 REPLIES 7
WarrenBelz
Super User
Super User

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.

v-siky-msft
Community Support
Community Support

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

Thanks @v-siky-msft ,

I never thought of that

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

itejada
New Member

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

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
Helper I
Helper I

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
Advocate II
Advocate II

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,688)