Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

Combobox : InputText sorting for multiple selected items

Posted on by 155
Hello,
 
I have a combobox with multiple selection on. When the user unselect something and select it again later, the text shown on the combobox isn't sorted alphabetically. It is sorted by order of selection. It's not a huge issue but I would like to give the user a clean UI with sorted items. It will allow him to see at a glance what is selected and what is not.
 
Categories:
  • WarrenBelz Profile Picture
    WarrenBelz 143,487 on at
    Combobox : InputText sorting for multiple selected items
    Just an observation - Modern Controls are mostly still in Preview and contain many "bugs" such as this. They really are not production-ready presently.
  • Volt26 Profile Picture
    Volt26 155 on at
    Combobox : InputText sorting for multiple selected items
    Hello mmbr1606,
    unfortunately that doesn't work. I'll live with the way Microsoft intended this to be... Thank you for your support!
  • mmbr1606 Profile Picture
    mmbr1606 9,996 on at
    Combobox : InputText sorting for multiple selected items
    hey
     
     
    you can try in the defaultselecteditems
     
     
    cheers
  • Volt26 Profile Picture
    Volt26 155 on at
    Combobox : InputText sorting for multiple selected items
    Hello mmbr1606,
     
    thanks for the formula. But I do not find where to put it...
     
    Here is what I have : 


    There doesn't seem to be a place where I can change what is shown there.
  • Suggested answer
    mmbr1606 Profile Picture
    mmbr1606 9,996 on at
    Combobox : InputText sorting for multiple selected items
    hey
     
     
     
    can u try this:
    Concat(Sort(ComboBox1.SelectedItems, DisplayField, SortOrder.Ascending), DisplayField, ", ")
    
    Replace Combobox1 with the name of your combobox and DisplayField with the field you are using as the display text in the combobox.
     
     
     
    if it helped please mark as verified answer,
     
     
    cheers

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard