Skip to main content

Notifications

Community site session details

Community site session details

Session Id : gkU8BMENqZDEOD7jwyAQfq
Power Apps - Building Power Apps
Answered

Set Default Selection of Combobox

Like (0) ShareShare
ReportReport
Posted on 19 Jan 2018 15:15:12 by 284

Hi All,

I have a "Single-Select" Combobox with the items populated by a collection called "WorkOrderTable". I would like to set the default selection using formulas but have been unsuccessfull. I tried setting the "Default" property with the formulars shown below:
image.png

 

 

However no default selection is shown: 

image.png

 

How do set the default selection of a combobox using formula?

Categories:
  • DGS Profile Picture
    114 on 28 Jun 2024 at 20:24:22
    Re: Set Default Selection of Combobox

    Why have a Default property then?

  • Community Power Platform Member Profile Picture
    on 23 Jun 2021 at 07:12:57
    Re: Set Default Selection of Combobox

    I respond to myself, need to use 

    RenameColumns(Split(dpd_recherche_etude.Selected.'Région concernée'; ",");"Result";"Value")

     

    credits goes to Loading Multiple Default Selected Items into a Power Apps Combo Box — Fidelity Factory

     

    ALP1_0-1624432367946.png

     

     

     

  • Community Power Platform Member Profile Picture
    on 22 Jun 2021 at 22:47:04
    Re: Set Default Selection of Combobox

    Hi @ramanujama 

    I have the same issue.

    I record values form combobox into the column "region concernée".

    The formula shows only the first record.

     

    Filter(
     'centre de documentation';
     'Région concernée' in Split(
     dpd_recherche_etude.Selected.'Région concernée';
     ", "
     )
    )

     

    ALP1_0-1624404169438.png

    I added a label to understand if my dropdown dpd_recherche_etude returns correct values and it did as you can see.

    The formula is dpd_recherche_etude.Selected.'RĂ©gion concernĂ©e'.

     

    I made a screenshot from my SP list

     

    ALP1_1-1624404478605.png

     

    What am i forget ?

     

     

  • APetersen786WNS Profile Picture
    3 on 22 Apr 2021 at 11:01:30
    Re: Set Default Selection of Combobox

    Thank you. This worked for me. I just took out the "Id:0," out. Also changed Value: "20" to Value: ThisItem.ColumnName .

    This was to get the Saved value come up when Editing the SharePoint Item.

  • ramanujama Profile Picture
    51 on 20 Apr 2021 at 09:50:35
    Re: Set Default Selection of Combobox

    It is really simple.
    Example you have an Employee table with columns: Id, Name

    Suppose you have created a Combobox for email and selected A, B, C and saved it in database. When you load the page or comes again, you want those items to be selected as default, use below formula:

    DefaultSelectedItems = Filter(Employees, Name in Split(EmailList,","))

    Note: EmailList is coming from database (previously saved value)

    Above formula selects items in combobox as well.

  • Rayo Profile Picture
    7 on 20 Nov 2020 at 11:15:05
    Re: Set Default Selection of Combobox

    @digitaldanlim26 This worked for me too. Thanks so much.

  • rschneider Profile Picture
    75 on 02 Mar 2020 at 12:27:24
    Re: Set Default Selection of Combobox

    @digitaldanlim26  This is the one that worked for me. 

    Thanks!

  • digitaldanlim26 Profile Picture
    43 on 21 Oct 2019 at 06:42:44
    Re: Set Default Selection of Combobox

    use ForAll function in DefaultSelectedItems property

     

    ForAll(tableSource,Result)

  • MK1 Profile Picture
    169 on 04 Oct 2018 at 17:59:16
    Re: Set Default Selection of Combobox

    Hi,

    I'm also having same kind of issue.

    In my scenario, 

    I have a combo box which will be filtered based on values we choose from a Dropdown

    DropDown= A, B,C

    when a user selects A,C then there will be only 1 value in the combo box,

    But when they choose B there will be multiple options on Combobox they need to select.

    What my issue is: When a user selects A,C from dropdown a textbox should be populated with Combobox value automatically, but when user selects B they should be able to select options from combobox values.

    How can i set the properties.

     texbox needs to be populated conditionally. like when they select A,C from dropdown then the textbox value should be the only value from combobox.

    When they select B from the dropdown, they should be able to select 3 values from combobox and populate into the textbox.

    textBox= Concat(combobox.SelectedItems,Result&",")

    This is the formual i used on textbox.So what ever user selects on combobox will bepopulated into textbox

    But textbox should be set to default combobox option when they select A,C from dropdown

  • XenophonD Profile Picture
    12 on 30 May 2018 at 18:24:07
    Re: Set Default Selection of Combobox

    I wasn't using a datacard with my combo box but I was able to work through the issue. Turns out that when I added the defaultselecteditems property, it decided to change what values it was returning back. I had to change the DisplayFields and SearchFields back to what I originally had on that combobox and everything worked perfectly. Thanks for the help though!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started
Loading complete