cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cam
Level: Powered On

Reset ComboBox using manual entered Items is not working

 

I'm having issues trying to reset a combobox, which uses a custom item list, in a custom tablet-mode app.

 

ComboBox.Items = ["Option1","Option2","Option3"]

ComboBox.Default = 

ComboBox.DefaultSelectedItems = []

ComboBox.Reset = ResetVariable

 

I've tried adding a button to reset the combobox.. this didnt work

Button1.OnSelect = Reset(ComboBox)

 

I've tried adding a button to update the variable.. this didnt work

Button.OnSelect = UpdateContext({ResetVariable: true});UpdateContext({ResetVariable: false});

 

I've tried adding the context change, into the Screen.OnVisible + Screen.OnHidden hooks... this didnt work

Screen.OnVisible = UpdateContext({ResetVariable: false});

Screen.OnHidden = UpdateContext({ResetVariable: true});

 

 

any idea's of how to correctly reset a combobox, when the Items are hard coded ["Option1","Option2","Option3"]
ps. i don't want to add a "Empty" option into the hard coded values

 

thank you

2 REPLIES 2
Community Support Team
Community Support Team

Re: Reset ComboBox using manual entered Items is not working

Hi @Cam,

 

Instead of setting the DefaultSelectedItems to blank (nothing), try setting it to an empty collection ([]) - that should work:

ComboBox1.DefaultSelectedItems: []
Button.OnSelect: Reset(ComboBox1)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cam
Level: Powered On

Re: Reset ComboBox using manual entered Items is not working

Yep that's what I've already got.
It works correctly when you test it in PowerApps Studio, but it you publish the app and try it in the PowerApps webplayer, it doesn't work 😞

Is there a workable solution that works for published apps?

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,115)