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 Apps
Unanswered

Combo Box Reset

(2) ShareShare
ReportReport
Posted on by 2,944

Hi PG:

 

Just consider to migrate from DropDown to ComBox Box.

 

I have an issue here:

- I try Button.Pressed to Reset the selected items to "Fnd items" (that is before any item is selected), but it neve works.

- Even using Set to false and Set to true of context variable with Reset = Context Variable, also never work.

 

Any advice will be much appreciated.

 

Meantime, the tutorial is unclear of certain application, including:

- SelectedItems

 

Thanks and have a nice day.

Categories:
I have the same question (0)
  • hpkeong Profile Picture
    2,944 on at

    HI PG:

     

    Try sharing my current workaround, which is definitely workable, but doesn't sound good.

     

    Combox.DefaultSelectedItems = myvar (context variable),

    Create a button or anything, to set or updatecontext:

    = Set(myvar, ["Find items"])

    ... ["Any hint text"] to blank out the previously selected item and show Find items, but it is with a "X" (Cancel Cross) which does not looks good comparing to original "Find Items"...

     

    Hope for a better Reset Mode.

     

    (I wish this will help someone who asked in the forum before on RESETTING to temporary getting things done. I can;t find his post, but hope can help him out)

     

    TQ

     

    Selected ItemsSelected ItemsChoose ItemsChoose ItemsAfter ResetAfter Reset

  • rdshideler Profile Picture
    6 on at

    Has there been any updates to this?  I am currently using this method, but it isn't perfect.  It still leaves text in the combo box that has to be removed prior to searching again.

  • Community Power Platform Member Profile Picture
    on at

    Hello, 

    Is there any other solution or update ? 

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    Have you seen the response on this post by @CarlosFigueira? It worked for me. 

     

    You need to change the DefaultSelectedItems property for the combo box to []. Make sure its the DefaultSelectedItems, not just Default otherwise it won't work. 

     

    Then as previously discussed you just use some form of UpdateContext() attached to the OnSelect property of a button to set a variable you can reference in the ComboBox's Reset Property e.g.

     

    UpdateContext({ResetCombo: true}); UpdateContext({ResetCombo: false})

     

    Then put ResetCombo as the Reset property for any comboboxes you want to reset. 

  • Community Power Platform Member Profile Picture
    on at

    Powerappcase1.PNGPowerappcase1.1.PNGPowerappcase1.2.PNG 

     

     Thanks for your answer !
    I've modified the Defaultselecteditems properties,
    I've add reset(combobox1)

    But when I come back the combobox is the same. I really don't understand.

     

  • Community Power Platform Member Profile Picture
    on at

    Have you tried setting the OnSelect property of the Cancel button to the following? 

     

    Reset(ComboBox1); Refresh(Table1_1); Navigate('Welcome screen') 

     

    I've always used ; as the separator between functions in Powerapps, not And. 

     

    Let me know if that helps! 

  • Community Power Platform Member Profile Picture
    on at

    The reset function doesn't accept my combobox. Do you have an idea of why ?                                                        

    powerappscase2.2.PNG

     

     

    Thanks!

  • Community Power Platform Member Profile Picture
    on at

    How about trying this combination: 

     

    1. Set the OnSelect of your Cancel button to something similar to my example below. (So including the two UpdateContext() formulas instead of the Reset() one). 

    OnSelectExample.PNG

     

    2. Set the Reset part of the ComboBox Advanced Settings to match the name of the Context you've just set: ResetCombo

    ComboSettings.PNG

     

  • Community Power Platform Member Profile Picture
    on at

    Hello, just wanted to share my experience on this, after spending a few hours ...

     

    For me the 2 following options worked :

     

    1/ set DefaultSelectedItems = [] and then, when needed , use the function Reset(ComboBox)

     

    2/ set DefaultSelectedItems = [] and Reset = varReset ; and then, when nedded, set varReset=!varReset

          ==> meaning that the Reset is done when the value of the Reset property is changed, whatever the value ! (it is resetting when the value is false, as long as the value was true before ...)

     

    Of course option 1 is simpler but for some reasons, it sometimes does not work. So in that case I use option 2 which was hard to find out but definitely works.

     

    Guillaume

  • Community Power Platform Member Profile Picture
    on at

    In fact this was working 2 days ago and doesn't work anymore since yesterday, don't know why ! My coding version has moved from 3.18041.20 to 3.18042.20, maybe it is related, maybe not.

     

    This is so frustrating !

     

    I have some comboBoxes for which the Reset works fine, and I can't reproduce this with others comboBoxes on others screens, while applying the exact same configuration ! This is driving me crazy 😞

     

     

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