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 / Reset a combobox based...
Power Apps
Unanswered

Reset a combobox based on an item that is unselected from another combobox

(0) ShareShare
ReportReport
Posted on by 248

Hi I have two comboboxes, we'll call them Combo1 and Combo2.  Combo1 has values of A, B, C, Combo2 has values however they are irrelevant.  When value B is selected from Combo1, Combo2 is visible.  When value B is unselected from Combo1, Combo2 is hidden.  What I also need is Combo2 to be reset.  I've tired to use Reset() in Combo1 in an if statement, however power apps says I can't do that action.

 

Anyone have an ideal of how I can reset Combo2 when a certain selection in Combo1 is unselected?

Categories:
I have the same question (0)
  • jrletner Profile Picture
    720 Super User 2025 Season 2 on at

    Try setting a variable to handle the reset.

    In the Combo1 "OnChange" property, set a reset variable:

    First set it true, and then false again.

    Set(varResetCombo, true);
    Set(varResetCombo, false);


    Now, in the Combo2 "Reset" Property enter the variable:   varResetCombo

    That will reset Combo2.

  • Verified answer
    cbernier12 Profile Picture
    248 on at

    Thanks that put me on the right path and I modified a bit and ended going with this and it works great because it wipes out combobox2 when the unique item in the list is deselected in combobox1:

    If(
        "Combo1 unique selected item" in combo1Var,
        Set(
            varResetCombo,
            false
        ),
        Set(
            varResetCombo,
            true
        )
    )
  • jrletner Profile Picture
    720 Super User 2025 Season 2 on at

    Fantastic! Glad you were able to get that resolved 🙂 

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