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 Platform Community / Forums / Power Apps / DefaultSelected - Comb...
Power Apps
Answered

DefaultSelected - ComboBox not working

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a SharePoint list column "products". Its being updated by my powerapp using form > combox with the below formula:

Concat(ComboBox4.SelectedItems, Value, ", ")

It writes on the sharepoint okay with format product1, product2, product3

 

However, when I use the DefaultSelectedItems, its not showing the current data it has for products. I tried the below formula but its not working:

 

ForAll(Split(Parent.Default,", ",LookUp(colVisible,'Products'.Value))

 

colVisibile is the collection I use with all data.

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 


    What is the Items property of your combobox?  The records in the DefaultSelectedItems (DSI) property MUST match the schema of the Items property in order to match.

     

  • Community Power Platform Member Profile Picture
    on at

    Hello,

     

    The combobox has the Item  = ["product1","product2","product3"]. Its just a static options I put in and data type appears to be table.

  • Community Power Platform Member Profile Picture
    on at

    Thanks! gave me the idea and used the below formula instead:

     

    RenameColumns(Split(Parent.Default, ","), "Result", "Value")

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    One additional habit to get into when splitting text for default selected items is to utilize the filter function to remove anything that is not valid.  The reason is, if there is a blank record in the DSI items, then the combobox will "look" like it has the items selected, but if you look closer at the actual dropdown list, you will see that they are not really selected...this is because the blank causes issues.

     

    So your formula would be:

    RenameColumns(
     Filter(
     Split(Parent.Default, ","),
     !IsBlank(Result)
     ), 
     "Result", "Value"
    )

     

    Glad you got it working!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard