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 copy a text fro...
Power Apps
Answered

How to copy a text from a label to a datacard?

(0) ShareShare
ReportReport
Posted on by

Dear Experts, 

 

I want to do a very simple operation in my app. I want copy a text from a label to a Datacard field when I tick/check a box ? Screen attached, 

Value 53.33 is the Averagecost (label name)

That amount should show in the Unit price Datacard when I tick the box, 

 

How can I do it?

 

Capture.JPG

 

Osmand

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @OsmandFernando 

     

    Put this code in the OnCheck property of the button

    Set(myUnitPrice, Label_UnitPrice.Text);
    Set(myReset, true); Set(myReset, false);

     

    Then use this code in the Default property to make the value appears when the button is clicked

    myUnitPrice

     

    This code goes in the Reset property of the button to trigger the new value's appearance

    myReset

     

    Finally, put this code in the OnVisible property of the screen to ensure the initial value in the field is blank

    Set(myUnitPrice, Blank())

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • OsmandFernando Profile Picture
    on at

    Thank you so much @mdevaney 

     

    Great support

    Osmand

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard