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 / How can I reset select...
Power Apps
Unanswered

How can I reset selected item in a combobox?

(0) ShareShare
ReportReport
Posted on by 149

I have a form with two dropdowns.

 

The items in the second dropdown are based on the first dropdown selection.

Everything is working fine in a New form.

 

In the Edit form, I want to clear the second dropdown selected item if the first dropdown selection changes.

This could be probably done via variables, but how?

 

In second dropdown:

Items:Filter(MyList, State_x0020_Name=ComboBox1.Selected.Result)

DefaultSelectedItems:{City_x0020_Name:ThisItem.City_x0020_Name}

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @rohinMVP ,

    I assume it is the Items you want to refresh (not the DefaultSelectedItems).

    If so, on the OnChange of your First Combo Box, simply put

    Reset(YourComboBox2Name)

     

    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.

  • rohinMVP Profile Picture
    149 on at

    hi @WarrenBelz,

    I tried Reset(ComboBox2) and Refresh(ComboBox2), but they didn't work.

  • Jitendra_jangid Profile Picture
    128 on at

    Hi

     

    In DefaultSelectedItems property of Combobox2 you can check whether first Combobox1 has been updated or not and based on that set the DefaultSelectedItems.

     

    If(ComboBox1.Selected.Result = ThisItem.<FirstComboboxfield>, {City_x0020_Name:ThisItem.City_x0020_Name}, {City_x0020_Name:Blank()})

     

    Also, Reset(ComboBox2) on Change of first Combobox.

  • rohinMVP Profile Picture
    149 on at

    Hi @Jitendra_jangid ,

     

    That helped me with the dropdown.

     

    Can the same be done for a textbox also?
    The textbox shows details for the item selected in combobox2.

     

    I have the below for the Textbox

     

    Default:Coalesce(varPopulation,Parent.Default)

     

     

    In Combobox2:

     

    OnChange:Set(varPopulation,ComboBox2.Selected.Population);Reset(Textbox2);

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @rohinMVP ,

    Typo now fixed (should be reset), but I will leave you with @Jitendra_jangid 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard