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 / Filter a combo box bas...
Power Apps
Unanswered

Filter a combo box based on a YES/NO toggle

(0) ShareShare
ReportReport
Posted on by 23

Hi,

I'm trying to filter a combo box and have it show a value based on the toggle response. If the user leaves NO checked, the combo box will show "Inexistente", if the user checks YES, the combo box will change to "Vigente".

marizilla_99_0-1678798713631.png

I'm stuck on this part and a little help would be awesome!

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @marizilla_99 ,

     

    I believe you can do it this way:

     

    Toggle.OnChange: Reset(Dropdown)
    
    Dropdown.Default: If(Toggle.Value, "Vigente", "Inexistente")

     

    Each time you click on the toggle, it will reset the dropdown to its default value. The default value will change depending on the toggle's value, switching between "Vigente" and "Inexistente".

  • kmw1130 Profile Picture
    988 on at
    I'm trying to resolve the same scenario and I'm getting the red squiggly when trying the formula suggested.
  • Apurva Profile Picture
    91 on at
    Try this on the default property of the dropdown and please let me know if it works: 
     
    Table({Value: If(Toggle2.Value, "Item1", "Item2")})
  • Suggested answer
    Ytalo Silva Profile Picture
    181 Super User 2025 Season 2 on at

    Hello, in the DefaultSelectedItems property of the ComboBox, add:

    If(Toggle.Value = "NÃO", {Value: "Inexistente"}, {Value: "Vigente"})  
     

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