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 / Make a button that cop...
Power Apps
Answered

Make a button that copy/push text from a Label to spesific Datacaad

(1) ShareShare
ReportReport
Posted on by 9

Hi,

I hope someone can help.

I'm building an app that uses webcam to OCR read information from picture. I'm able to get the different OCR-read text listed in a Gallery. From the gallery I get the selected text over to a Label using GalleryX.selected.text in the Label.

 

My goal is to extract 2 lines OCR-read text (from Gallery) over to 2 different datacards. I want to select the text from gallery, Label updates, then push a button that submit that text from a Label to a Datacard1. Then I select the other text from the Gallery (and the same Label updates with newly selected text) and push another Button/Button2 that submits the text to Datacard2.

When I have the two datacards populated I can submit the form to sharepoint list. 

 

Or to simplify; does anyone know how to make a button that copies text from a Label to a spesific Datacard?

Anyone?

Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Try having your buttons set a variable each, then reference that variable in the datacards default value

    Button.OnSelect: Set(gblVariable1, Label1.Text)

    Datacard Default: gblVariable1
    (assuming you need the default value to populate something in the datacard and that we are not talking about the controls INSIDE the datacard)

  • Trema99 Profile Picture
    9 on at

    Works like a charm!

     

    Thank you very much!

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Excellent, glad I could help!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard