Hi,
Does anyone know how to unselect combo box in modern froms? In old forms combo box had x to clear value from selected, looks that this is missing in modern:
Kind regards,
Hi v-mengmli-msft
If you have single question (attribute) form, or perhaps two attributes inside entire form - using a special button for resetting value could make sense.
If you have 50 questions (attributes) inside a form - it would be very bad design to put 'clear' button next to each. It would be also unfortunate to have a button to reset entire form in case you just want to remove value from one attribute out of 50.
Looks like legacy form and legacy combo box does not have all of those problems - they are easier to use, better functionality.
Thank you for all your responses and effort - lets hope modern combo will get closer to legacy one.
Hi!
I have another idea.
What about set a clear button for the combo box?
Just like this:
If my answer solved your problem, please accept it as a solution.
Thanks.😀
Rimmon
Hi v-mengmli-msft,
I am not entirely sure if this is a good idea. This stays in conflict with "PowerApps canvas app coding standards and guidelines" which clearly suggest to limit number of collections:
If I am supposed to use collection as work around in every drop down connecting to view from Dataverse - this is a downgrade compared to legacy combo box.
Legacy combo box is just soooo much easier to use. Using Modern Combo does not sound like a good idea considering high number of limitations and work around's needed.
Please try this:
1.OnVisible of screen:
ClearCollect(col,Filter('DataverseTable', 'DatasourceTable (Views)'.'SpecificView'));
Collect(col,Defaults(col),{ColumnName1:""})
2.Set the items of combo box: col
3.Switch to another screen and back to set the result in combo box.
Thank you v-mengmli-msft for very quick response,
Using Backspace key sounds like awful work around, you cant ask end user to flex with 3-4 different actions using thumb just to remove selection.
In terms of using empty element (which is how old combo box worked really) - would you kindly advise how to add empty element to modern combo items when App Maker use filter like:
Filter('DataverseTable', 'DatasourceTable (Views)'.'SpecificView')
Where "" fits here?
Kind regards,
Hi @DariuszSzwabo ,
Use Backspace key to delete selected item in combo box:
1.Select one choice and not click anywhere.
2.The cursor is flashing.
3.click Backspace to delete.
Add blank choice:
How to add the blank selection depends on the tables in items of combo box:
For example:
table in my combo box items:
Then I want to add a blank item:
Hi v-mengmli-msft,
Thank you for your response. I'm afraid what you explained with keyboards delete just don't work. Once you selected any element, when going back to the same field to 'delete' - cursor clears entire field. Once you leave it - previous selection returns to combo box. So no, you just can't delete using any key.
This is how it looks like when I return to my field, it looks cleared but once I navigate elsewhere the value returns:
Using array with empty element is very simplified example but how this can work with Dataverse in two scenarios:
- App Maker is using choice column which do not have "" - does this need to have "" added to choice list?
- App Maker is using look up (relationship) - does this need to have "" element added to related table?
Kind regards,
Hi @DariuszSzwabo ,
There are some differences between modern combo box and classic combo box.
First way to clear selected item in combo box: Use your keyboard's delete key.
Second way: Add a blank item in items of combo box:
Rimmon
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional