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 / Add approve all button...
Power Apps
Answered

Add approve all button to gallery

(0) ShareShare
ReportReport
Posted on by 237

Hi,

 

I need help to add a button to my gallery in powerapps. This gallery has information regarding the request and the CFO has to enter in their approval for each item. Sometimes there can be 20 items to approve. To make it easier, I would like to add a button that says "Approval All" and this button would then select the "Approve" option within the dropdown for all 20 items. What should the formula look like?

 

Any help is appreciated!

 

Gallery:

NPatel12498_0-1710355497492.png

CFO Response Field:

Items: 

Choices('Checklist Details'.'CFO Response')

 

Categories:
I have the same question (0)
  • Verified answer
    BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at

    Create a variable CFOResponse by default set the value to Blank().


    When user click on 'Approve All' buttton set the value of the variable to 

     

    Set(CFOResponse, {Value:"Approve"})

    And on the DefaultSelectedItems of Combobox control have variable CFOResponse

     

    If its dropdown then on then set variable as

     

    Set(CFOResponse, "Approve")

    set it on default of dropdown control

  • Verified answer
    NP-18101421-0 Profile Picture
    237 on at

    This works great! and what if I wanted to reset all of the rows back to them being blank... how would that be done?

  • BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at

    Add Reset button and Set value to Blank.

     

    Set(CFOResponse, Blank())

     

    If it answers your question don't forget to mark it as solution and give kudos 👍

  • NP-18101421-0 Profile Picture
    237 on at

    Thank you for all your help!

  • NP-18101421-0 Profile Picture
    237 on at

    Hi,

     

    @BhaskarDhone I was hoping you could help me with this issue again. I need the CFO to be able to select Approve All and then also be able to update one of the items to reject if needed. However, when I do this, none of the responses are patching and saving unless I manually click into the dropdown and select it. The Approve All button does update the dropdown values to Approve, but after submitting the values don't get saved.

     

    Can you provide some insight why this may be happening?

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 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard