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 OnSelect change...
Power Apps
Answered

Button OnSelect change text

(0) ShareShare
ReportReport
Posted on by 18

Hi, I am new to Power Apps. I have created a SharePoint list and created an app from it. In my app there is a field Status.In Edit Screen, Under status data card I added Two buttons i.e., Approve & Reject. On clicking respective buttons Status value in Browse screen should change to Approved and rejected Respectively. I am using UpdateContext({Status:"Approved"}) and UpdateContext({Status:"Rejected"}) for that. But they are not working. Please help me.Browse details.pngScreenshot (222).png

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    The formula is ok. However change the Text of the button to;

    If(status="Approved","Approved","Approve")

    The other button should be;

    If(status="Rejected","Rejected","Reject")

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Mahesh_0786 Profile Picture
    18 on at

    In the Browse details screen status value is still not changing and button values are displaying as approve ,Rejected or Approved, reject depending on status value. 

  • Mahesh_0786 Profile Picture
    18 on at

    On clicking approve or reject buttons in edit form of edit screen, the status value in details screen has to change to approved or rejected. This is not happening. please view the screenshots to find in details.

  • eka24 Profile Picture
    20,925 on at

    Do you want the description on the Button or the Datasource.

    If you want the details to show that, save the Editform and it will reflect in the details screen.

    You should have a Button on your screen which is also outside the form. 

    Onselect of the inserted button put:

    SubmitForm(Editform1)

     

    So delete those buttons inside the form

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Mahesh_0786 Profile Picture
    18 on at

    I want to insert the text I am entering on "OnSelect" Property. Two buttons are there Approve & Reject in status data card, when I click on Approve, Status Should change to Approved in enitre app. Same way When I click on reject status should change to Rejected. This Approved And Rejected, Can I enter in OnSelect Property like UpdateContext({Status:"Approved"}) and UpdateContext({Status:"Rejected"}) . By doing like this status value is not updating. Do I have to patch function otherwise? If so, How to use it?

  • eka24 Profile Picture
    20,925 on at

    In my last reply It was stated that he use submitForm formula. Did you try that?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Mahesh_0786 Profile Picture
    18 on at

    I tried SubmitForm(EditForm1),that didn't work.

  • eka24 Profile Picture
    20,925 on at

    Since you are using a form, the best approach is the submitform. Can you show a screenshot of the formula on the button. The button should be outside the form not in a datacard as I said earlier.

    Also When you say it didn't work do you mean the data was not sent to the Datasource?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Mahesh_0786 Profile Picture
    18 on at

    Yes,In the data source the status value is not updating. The value is not being sent to the data source.

     

     

    Screenshot (223).png

  • eka24 Profile Picture
    20,925 on at

    It not working because you are not following. I never asked you to combine the update context with the submitform. Remove the update context formula.

     

    Also all my previous reply states that Insert a separate button on the screen not inside the Datacard. 

    Remove those buttons you have inserted into the the Datacards

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard