How to Set Combo Box Default Value in Power Apps?

Did you know how to set a Power Apps combo box control default value? In this Power Apps tutorial, I will explain how to set combo box default value in Power Apps.

Moreover, I will show you how to set the Power Apps combo box default value manually and also how to set the Power Apps combo box default value using a SharePoint list.

Also, we will see how to set the Power Apps combo box with multiple default values and:

  1. How to reset a Power Apps combo box control value to its default value
  2. Set the Power Apps Combo box default to the current user
  3. How to set a combo box default value as empty

Set Combo Box Default Value in Power Apps

In this section, I will show you how to set a default value to a Power Apps combo box control using two different scenarios:

  1. Power Apps set the default value of the combo box manually
  2. Power Apps set the default value of the combo box using a SharePoint list

Power Apps set the Combo box default value manually

Here, I will show you how to manually set a default value to a Power Apps combo box control.

Example,

I created a Power Apps Canvas app and then added a Combo box control, that contains the “Product Names” [Which I added manually]. Next, Whenever the user opens or loads an app, the Power Apps combo box control will automatically display its default value as shown below:

Power Apps combo box default

Let me show you how to achieve this:

  • On the Power Apps screen, insert a Combo box control -> Set its combo box property to:
Items = [ "Tablet", "Laptop", "SmartPhone", "Desktop"]

DefaultSelectedItems = ["Laptop"]
Power Apps combo box control default items
  • Save, Publish, and close the app. Then, reopen and preview the app. The combo box control value will be selected as “Laptop” by default.
Power Apps set combo box default value

This is how to set the Power Apps combo box control default value manually.

Power Apps set a combo box default value using a SharePoint list

Here, let me show you how to set a Power Apps combo box control default value using a SharePoint list.

Example,

I have a SharePoint list [Customer Details], that has various columns like:

Column NameData Type
User NameTitle
CountrySingle line of text
Subscription TypeChoice [“Premium”, “Basic”, “Standard”]
DeviceChoice[“Laptop”, “Tablet”, “Smart TV”, “Smart Phone”
Subscription End DateDate and time
Subscription Handled ByPerson or group
How to set combo box default value in Power Apps

I created a Power Apps Canvas app and then added a Combo box control, connected to the above SharePoint list column [Country]. Next, the Power Apps combo box control will automatically display its default value whenever the user opens or loads an app.

How to set Power Apps combo box default value

Let me show you how to achieve this:

Power Apps set combo box default items
  • On the Power Apps screen, insert a Combo box control -> Set its combo box property to:
Items = Distinct('Customer Details',Country)

DefaultSelectedItems = ["US"]

Where,

  1. Customer Details = SharePoint list name
  2. Country = SharePoint list column name
  3. US = SharePoint list column value
Combo box default value in Power Apps
  • Save, Publish, and close the app. Then, reopen and preview the app. The combo box control value will be selected as “US” by default.
How to set combo box default items in Power Apps

This is how to set the Power Apps combo box default value using the SharePoint list.

Power Apps Combo box with multiple default values

Here, I will show you how to set a default multiple values to a Power Apps combo box control.

Example,

  • I will take the above example of the Power Apps combo box control, setting multiple items as the default selected items.
  • I want to set both “US” and “Germany” as default items.
Power Apps Combo box set multiple default values

Let me show you how to achieve this:

  • Select a Combo box control -> Set the combo box DefaultSelectedItems properties to:
["US", "Germany"]
How to set a default multiple values to a Power Apps combo box
  • Save, Publish, and close the app. Then, reopen and preview the app. The combo box control value will be selected as “US” and “Germany” by default.
Power Apps set combo box multiple default values.

This is how to set the multiple default values in the Power Apps combo box control.

Power Apps reset Combo box to default value

In this section, I will show you how to reset a Power Apps combo box control value to its default value.

Example,

I have added an Edit form that is connected to the above SharePoint list [Customer Details]. The form contains the Combo box control (Subscription Type) and a Reset icon.

Whenever the user selects a different value from the combo box control and clicks on the reset icon, the combo box will reset to its default value, i.e., Premium.

Reset Power Apps combo box value to default value

Follow the below-mentioned steps to achieve it:

  • On the Power Apps screen, insert an Edit form -> Connect the form with the above SharePoint list.
Reset combo box value to default value in Power Apps
  • To set a default value, click on the Combo box [Subscription Type] control -> Set its DefaultSelectedItems property to:
["Premium"]
How to reset Power Apps combo box value to default value
  • Insert a Reset icon -> Set its OnSelect property to:
Reset(DataCardValue2);

Where,

  • DataCardValue2 = Combo box control name
Power Apps set combo box control default value
  • Save, Publish, and Preview the app. Select a different combo box value and click the reset icon. Then, the combo box will reset to its default value.
How to reset combo box value to default value Power Apps

This is how to reset a Power Apps combo box default value.

Set the Power Apps Combo box default to the current user

Here, I will show you how to set the Power Apps combo box default value as the current user.

Example,

I have added an Edit form that is connected to the above SharePoint list [Customer Details]. The form contains the Combo box control (Subscription Handled By) which is a SharePoint list person column.

When a user opens or loads an app, the Power Apps combo box control will automatically display the current user name.

Set the Power Apps combo box default to the current user

Follow the below steps to achieve it:

  • In Power Apps, connect the data source to the Office365Users as shown in the below image:
Power Apps combo box default to the current user
  • Select the Person Combo box control -> Set its DefaultSelectedItems property to:
{
    DisplayName: User().FullName,
    Claims: "i:0#.f|membership|" & Office365Users.MyProfile().UserPrincipalName
}
Power Apps set combo box default to the current user
  • Save, Publish, and close the app. Then, reopen and preview the app. The person combo box control value will be selected as a current user as shown below:
Set combo box default to the current user in Power Apps

This is how to set the Power Apps combo box default to the current user.

Power Apps Combo box default value empty

In this section, I will show you how to set a combo box default value as empty.

Example,

I have created a Power Apps Canvas app and then added a Combo box control and a Gallery control. The combo box control contains the values from the above SharePoint list column [Country].

Whenever the user opens or loads the app, by default combo box value should be selected as a blank value, and at the same time, the gallery should filter and display all the records.

Power Apps set combo box default to empty

Follow the below steps to achieve it:

  • On the Power Apps screen, insert Combo box control -> Set its combo box properties to:
Items = Distinct('Customer Details',Country)

DefaultSelectedItems = Blank()
Set Power Apps combo box default value to empty
  • Insert Gallery control -> Set its Items property to:
If(
    cmb_Country.Selected.Value = Blank(),
    'Customer Details',
    Filter(
        'Customer Details',
        Country = cmb_Country.Selected.Value
    )
)

Where,

  1. cmb_Country = Combo box control name
  2. Customer Details = SharePoint list name
  3. Country = SharePoint list column name
How to set Power Apps combo box default to empty

You can see here I have set the combo box default value to empty in Power Apps.

Power Apps set combo box default value as empty

This is how to set the Power Apps combo box default to empty.

Conclusion

I hope this tutorial will give you complete information about “Power Apps Combo box default”.

In this Power Apps tutorial, I have explained how to set the Power Apps combo box default value manually and also how to set the Power Apps combo box default value using a SharePoint list.

Moreover, in this tutorial, I have given the complete information:

  1. Power Apps combo box with multiple default values
  2. How to reset a Power Apps combo box control value to its default value
  3. Set the Power Apps Combo box default to the current user
  4. How to set a combo box default value as empty

You may also like: