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 / Fill combobox value of...
Power Apps
Unanswered

Fill combobox value of a gallery with a button

(0) ShareShare
ReportReport
Posted on by 12
Hello everybody. I have a gallery and in it a combobox with a "Yes" and "No" option
I would like a formula for when the button is activated it fills the combobox with the value "Yes"
Thanks for the support
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,540 Most Valuable Professional on at

    HI @Davidn7 ,

    There is a bit more information required here - what is the current DefaultSelectedItems of the Combo Box and if it on a Form, does it need to display the current saved value unless the button is pushed ?

  • Davidn7 Profile Picture
    12 on at

    The default value is Blank()
    The checklist is a little long so I thought of adding this feature. After the user completes it, he has the option to clear the checklist and the combo boxes in the gallery to return to blank

    Did you understand?

  • WarrenBelz Profile Picture
    154,540 Most Valuable Professional on at

    @Davidn7 ,

    OK - if you do not want any default value, set a Variable OnSelect of the button

    UpdateContext({varChoice: "Yes"})

    Then the DefaultSelectedItems

    {Value: varChoice}

    also at Screen OnVisible

    UpdateContext({varChoice: Blank()})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard