Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Modern Forms combo box unselect

(1) ShareShare
ReportReport
Posted on by 61

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:

DariuszSzwabo_0-1700603246246.png

 

Kind regards,

Categories:
  • DariuszSzwabo Profile Picture
    61 on at
    Re: Modern Forms combo box unselect

    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. 

  • v-mengmli-msft Profile Picture
    on at
    Re: Modern Forms combo box unselect

    Hi!

    I have another idea.

    What about set a clear button for the combo box?

    Just like this:

    vmengmlimsft_0-1700720968255.png

     

    If my answer solved your problem, please accept it as a solution.

    Thanks.😀

     

    Rimmon

  • DariuszSzwabo Profile Picture
    61 on at
    Re: Modern Forms combo box unselect

    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:

    DariuszSzwabo_0-1700645650753.png

    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.

  • v-mengmli-msft Profile Picture
    on at
    Re: Modern Forms combo box unselect

    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.

     

  • DariuszSzwabo Profile Picture
    61 on at
    Re: Modern Forms combo box unselect

    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,

     

  • v-mengmli-msft Profile Picture
    on at
    Re: Modern Forms combo box unselect

    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:

    vmengmlimsft_0-1700643265324.png

    Then I want to add a blank item:

    vmengmlimsft_1-1700643336709.png

     

     

  • DariuszSzwabo Profile Picture
    61 on at
    Re: Modern Forms combo box unselect

    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:

    DariuszSzwabo_2-1700642330500.png

     

    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,

     

     

  • v-mengmli-msft Profile Picture
    on at
    Re: Modern Forms combo box unselect

    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:

    vmengmlimsft_0-1700616285489.png

     

    Rimmon

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard