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 DefaultSelect...
Power Apps
Answered

ComboBox DefaultSelectedItems From Option Set

(0) ShareShare
ReportReport
Posted on by 74

How does one set the default selected item in a combo box when the items are set to an Option Set? 

 

Suppose I have a Car entity.  A field of the Car entity is Color.  Color is an option set ("Red, Blue, Yellow").  In the canvas app I have a combo box that displays the Color option set.  I'd like the combo box to default to the selected Color if it has already been set in the Car entity at some point earlier. 

 

I can't figure this one out.  I'm still new to Power Apps but this sure seems like it should be pretty simple and straightforward but I'm drawing a blank.

 

Thanks,

Dan

Categories:
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    A combo box expects a table in the DefaulSelectedItems field. For example, if my Items property is ["Red", "Blue", "Orange"], then my DefaultSelectedItems property cannot be "Red", it has to be ["Red"] or ["Red", "Blue"]. 

     

    Does that help?

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Or taking your example. If the Items property of the Combo Box is set to:

    Choices(Car.Color)

    Say you want to set the DefaultSelectItems property of this combo box to "Blue", you can use:

    [Color.Blue]

    Or say there is a car record, CarA and you want to use its color as the DefaultSelectedItems, you can use:

    [CarA.Color]

     

    Let me know if this helps. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

     

  • simondoy Profile Picture
    34 on at

    I found this whilst looking for a solution with Dataverse for Teams. This approach does not work with Dataverses OptionSets.

    To set DefaultSelectedItems do the following:

    Say you have an OptionSet called CarColour and the Items property is set to Choices(Car.Colour)

    Set DefaultSelectedItems using Filter(Choices(Car.Colour), Value = ThisItem.Colour)

     

    Where ThisItem is your record.

     

    Hope that helps someone.

     

     

  • rebekah1119 Profile Picture
    7 on at

    You just saved my life!! I've been working on this for hours and nothing else worked! Thank you so much

  • Kato249 Profile Picture
    26 on at

    Thank you so much @simondoy 


    I'd done hours of searching before I came across this post of yours. For anyone looking to populate the DefaultSelectedItems that uses both an existing record and global choice in dataverse, this is your answer.

     

    In my case, the global choice was named "JobStatus" and the column that contained the record was called "Job Status".

     

    In the DefaultSelectedItems section of my DropDownBox I used the following formula:

    Filter(Choices(JobStatus), Value = ThisItem.'Job Status')

     
    And in the Items section:

    Choices(JobStatus)

     

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard