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 / Show Default Selected ...
Power Apps
Answered

Show Default Selected Items in Combo Box in Label & Highlight Default Selected Items

(0) ShareShare
ReportReport
Posted on by 15,679 Super User 2024 Season 1

Hi everyone,

 

I have two related issues I am seeing variations of in similar posts, but they have not quite resolved or fully clarified the issues.

 

  1. Users select a record from a Gallery
  2. Upon making a selection, they are navigated to another Screen
  3. The screen contains a multi-select combo box (note this combo box is not mapped to a Form)
  4. Users can select a list of SharePoint IDs from the Combo Box. The selected IDs are patched to a column on SharePoint with a delimiter
  5. If the user opens the record again, the default selected items are pre-populated into the combo box. I achieve this by performing a look up function to retrieve the contents of the SharePoint column from the data source, and then I split the values to populate the combo box back with the original values.

 

Issues:

 

  • If I add a label to the screen and set it to return the combo box selected items, nothing is displayed unless I manually select a value from the combo box
  • Although the default selected values are displayed in the combo box, they are not highlighted in the combo box drop down options. In fact, the user can select the same values again as if they were not already selected

 

Example.png

 

Combo Box Properties:

 

DefaultSelectedItems:

 

 

 

 

//Get default selected items if the form has been launched in edit mode

With(

 {

 SelectedIDs: LookUp(

 data_source,

 ID = data_source.ID,

 column_name

 )

 },

 RenameColumns(

 Filter(

 Split(

 SelectedIDs,

 ";"

 ),

 !IsBlank(Result)

 ),

 "Result",

 "Value"

 )

)

 

 

 

 

DisplayFields:

 

 

 

 

["ID"]

 

 

 

 

Items:

 

 

 

 

data_source.ID

 

 

 

 

Label properties:

 

Text:

 

 

 

 

Concat(ComboBox1.SelectedItems.ID,Text(ThisRecord.ID),";")

 

 

 

 

Similar post: 

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Combo-box-quot-Selected-quot-not-really-selected-until-a-person/td-p/145338

Categories:
I have the same question (0)
  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Hi

    LookUp(Table,Id=Gallery.Selected.column.ID,ColumnName)

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Not sure why you think this was a helpful response @Akash17 

  • Verified answer
    Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Ended up moving to Reza's solution of a using multi-select checkbox inside a Gallery as opposed to a combo box control (this works much better).

     

    https://www.youtube.com/watch?v=xUep4uud1BE&t=220s

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard