Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

DefaultSelectedItems for combobox based on different list

(2) ShareShare
ReportReport
Posted on by 6

Hello Power Apps experts!

I am struggling with displaying the current values of two Combo Boxes in my form. Both are linked to different lists as data sources.

The first Combo Box uses data from the 'Product Tags' list, specifically from the text column 'Range'. The Items property of the Combo Box is set to:
'Product Tags'.Range
It submits data to the target list 'ECO TRACKER' correctly, but when I open it in Edit mode, I can't see any value—just a blank field.

I have the same issue with another Combo Box that uses data from the 'ECO TRACKER USERS' list, where the column 'USERNAME' is formatted as a Person or Group field. The Items property is set to:
'ECO TRACKER USERS'.USER_NAME
It also submits data to the 'ECO TRACKER' list correctly, but again, in Edit mode, I see a blank field.

Moreover, if the blank value is not filled in again, it deletes the current value in my target list.

I suspect the issue lies in setting the correct value for the DefaultSelectedItems property, but I haven't been able to find a solution for either Combo Box.

Thanks in advance for your advice!

Categories:
  • PD-21101846-0 Profile Picture
    6 on at
    DefaultSelectedItems for combobox based on different list
    Thank you for answers!

    Here is brief clarification:
     
    What type of column are submitting data to in the target list 'ECO TRACKER'? Is it a Text field? - Yes for first Combo Box  it is text field. For Second it is person or group data.
     
    Are you submitting multiple values? - No, there is only one choice allowed for both Combo Boxes.
     
    Are you using a form? - Yes, both custom Combo Boxes are in form control field.
     
     
    Unfortuneatly i couldnt solve this issue. My form still works but without displaying current value.
  • WarrenBelz Profile Picture
    146,651 Most Valuable Professional on at
    DefaultSelectedItems for combobox based on different list
    Just following up to see if you received the answer you needed, or if you require further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    DefaultSelectedItems for combobox based on different list
     
    What type of column are submitting data to in the target list 'ECO TRACKER'? Is it a Text field? Are you submitting multiple values? Are you using a form? These are all good to know details. 
     
    If you are patching a single Value to ECO TRACKER, then you use the following to display the DefaultSelectedItems:
    If in a form with Item property set as selected item:
    [ThisItem.ColumnName]
    If you are trying to display the values in a standalone combobox:
    [LookUp('ECO TRACKER', ID =SelectedItem.ID).Column]
    If you are saving multiple values in ECO TRACKER using the Combobox like this: "Option1; Option2"
    Then use the following to show defautlselecteditems:
    Split(ThisItem.Column, "; ")
    OR
    //In case of a standalone Combobox
    Split(LookUp('ECO TRACKER', ID =SelectedItem.ID).Column, "; ")
     
     
    For the second scenario, if you are patching a Person Column in 'ECO TRACKER'
    //If in a form
    ThisItem.PeopleColumn
    In case of a standalone combobox:
    LookUp('ECO TRACKER', ID = selectedItem.ID).PeopleColumn
    If you are patching email addresses in a text field like "Email1; Email2":
    //If in a form
    ForAll(
        Split(
            ThisItem.PersonColumn,
            "; "
        ),
        First(Office365Users.SearchUser({searchTerm: ThisRecord.Value}))
    )
    If a standalone combobox:
    ForAll(
        Split(
            LookUp(
                'ECO TRACKER',
                ID = SelectedItem.ID
            ).PersonColumn,
            "; "
        ),
        First(Office365Users.SearchUser({searchTerm: ThisRecord.Value}))
    )
     
    Hope this helps solve your issues. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • WarrenBelz Profile Picture
    146,651 Most Valuable Professional on at
    DefaultSelectedItems for combobox based on different list
    For the first one, the DefaultSelectedItems should be (assuming 'ECO TRACKER' is a Choice column)
    {Range: ThisItem.'ECO TRACKER'.Value}
    For the second one, change the Items to
    Choices('ECO TRACKER USERS'.USER_NAME)
    then the DefaultSelectedItems should be
    ThisItem.USER_NAME
    and the Data Card Update
    YourComboBoxName.Selected
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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,651 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