web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox Default Selec...
Power Apps
Unanswered

Combobox Default Selected Items

(0) ShareShare
ReportReport
Posted on by 19

Hi,

 

I have created an app which has the data source as 2 separate SharePoint lists on different sites.

I have a new mode form which collects information from one of the sharepoint lists and saves it to the other sharepoint list via a comobobox and concat the values to a multiline text field:

Left(Concat(ComboBox4.SelectedItems, 'Name of information asset'&"|"),Len(Concat(ComboBox4.SelectedItems, 'Name of information asset'&"|"))-1)

 

This then populates another column of the sharepoint list with the ID from the combobox selected item:

Left(Concat(ComboBox4.SelectedItems, ID&";"),Len(Concat(ComboBox4.SelectedItems, ID&";"))-1)

 

When on edit mode, I have managed to create a combobox where the default selected items is populated from a gallery which splits the multiline text field:

RenameColumns(Gallery2.AllItems,"Result","Name_x0020_of_x0020_information_")

 

However, the defaultselecteditems is not populating the ID for the other column although it recognises there are default selected values. I am getting the ";" for the amount of default selected values that there are, along with the ID of any new selected items.

Left(Concat(ComboBox1.SelectedItems, ID&";"),Len(Concat(ComboBox1.SelectedItems, ID&";"))-1)

 

I just need to bring back the ID of the default selected items.

 

Thanks

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @BSahota :

    Could you tell me:

    • What is the Gallery2's Items property?
    • What is the ComboBox1's items propety?

    Because of the lack of information, I cannot determine what caused the problem. I have the following suggestions:
    I suggest that you do not use 

     

    RenameColumns(Gallery2.AllItems,"Result","Name_x0020_of_x0020_information_")

     

    as the default property of the combobox. Because the data structure of Gallery2.AllItems is different from the data structure of the data source of Gallery2, it also contains the data information of the controls in the Gallery2.Instead,you can try:

     

    Filter(YourComboBox1DataSource,ID in Gallery2.AllItems.ID)

     

    Best Regards,

    Bof

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard