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 / Button Click Changes D...
Power Apps
Answered

Button Click Changes Default Label Content

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

 

'Pending' is a label called ApprovalGalleryApprovalStatusFld, in a Gallery; the Text property of which is - "Pending".

 

'Approve' is a button in the same Gallery; the OnSelect property of which is - ApprovalGalleryApprovalStatusFld.Text="Approved"

 

The label default is always 'Pending'. However, when the user clicks on the button I'd like 'Pending' to change to 'Approved' so that 'Approved' is the content patched to the SP list. As written, when I click the button nothing happens.

 

3csman_0-1612730642560.png

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    Check out the button properties in this example from my contacts list.  You can easily modify the datasource and field in the patch to match your requirements. my field (refer) is a simple single line of text and is either true or false._1.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, thank you.

     

    I understand the Patch component. I've got that part built.

     

    I'd like to know if the actual word can be visually changed from 'Pending' to 'Approved' in the actual field on the screen with a condition prior to the form actually being submitted when the button is clicked?

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Solved it, thanks!

     

    Changed the button to a check box and put the following in the Text property of the Label -

     

         If(ApprovedCheckBox.Value=false, "Pending", "Approved")

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard