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 / DefaultSelectedItems n...
Power Apps
Answered

DefaultSelectedItems not working on all Combo Boxes

(0) ShareShare
ReportReport
Posted on by 58

I have two combo boxes on my form. On one, the DefaultSelectedItems works, and on the other it doesn't. Both pull from separate lists and neither list is part of the list I am saving the details to.

 

PropertyWorking oneNot working oneComments
LayoutSingleDoubleTried changing to single, didn't work.
ItemsDatasource.Title Datasource (no column)Tried Datasource.Column, didn't work (I also need the other columns).
DefaultSelectedItems{Title: ThisItem.Column}{Order: ThisItem.Column}

Also tried:

{Order: DataCard1.Default}

and

{Order: Parent.Default}

 

I can't work out why one works and one doesn't.

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @RABronn 
    The DefaultSelectedItems (DSI) of your "not working" control is not correct.  It is specifying a record that has a single column called Order, yet your Items property is all columns of the record of your datasource...so it will not match.

    I would suggest narrowing the Items to the column that you are specifying in the DSI - DataSource.Order

    Or, performing a lookup on the record from your datasource - LookUp(DataSource, Order=Parent.Default)

     

    Otherwise, the DSI and the Items will not match and you will not have results.

     

    I hope this is helpful for you.

  • RABronn Profile Picture
    58 on at

    That makes sense, thank you for explaining. Your second suggestion works and is exactly what I needed.

    I did try changing the Items property to DataSource.Order previously as I thought it could be that, but it did not work. I'm not sure why as it sounds like it should have done (although it wouldn't have been the best solution for me).

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

    @RABronn 

    Glad to help.

    Yes, the first would work - it might not provide the results you want, but the DSI would at least match the record properly.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard