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 Apps
Unanswered

Copy value

(0) ShareShare
ReportReport
Posted on by 8

Hi Everyone

This is the app on which I'm working:

 

PowerApps.png

 

So I used this app to gather the ressource needed of my team

But to win some time. I'd like to add a button copy, if I select something in my datable (on the left) and then I click on the copy button, the values will be added in my fields (on the right)

And I have another question, would it be possible in my datatable to replace billable False/True by No/yes ?

 

Any idea of how could I do that?For the first one, I tought about the function Button.pressed; but it"s not existing anymore

 

Many thanks for your help

 

 

 

Categories:
  • cyarbrough Profile Picture
    72 on at

    for the true/false field, you can change the label or text box's .Text property to this:

     

     

    If(BillableColumnName=true, "Yes","No")

     

     

    here's one way you could implement the copy button you described:

     

    add your "copy" button and set its .OnSelect property to this:

     

     

    UpdateContext({copy:1})

     

     

     

    add the following to:

    • your gallery's .OnSelect property, if you want the copied values to clear each time you select a new record
    • your "clear" button for the form
    • your "submit" button for the form, at the very end

     

    UpdateContext({copy:0})

     

     

    change the .Default property of every data input field in your form to this (add in your control/data names and remove brackets):

     

     

    If(copy=1,[YourGalleryName].Selected.[NameOfDataColumn],Parent.Default)

     

     

     

     

    if you want to show which record in the gallery is currently selected, you can use conditional formatting like this:

     

    .Fill or .Color on some or all labels in the gallery:

     

    If([YourGalleryName].Selected.ID =ThisItem.ID,["Selected" color],[Normal color])

    or

     

    .Visible on some kind of indicator icon:

     

    If([YourGalleryName].Selected.ID =ThisItem.ID,true,false)

     

  • Domiowa Profile Picture
    8 on at

    Thank for your help

    Concerning the color; you have SelectedFill and SelectedColor propreties

    But I'm not able to change my true/false to Yes/no, I don't have text proprtey

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard