web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add approve all button...
Power Apps
Unanswered

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,392 Super User 2025 Season 2 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,392 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard