Power Apps Combo Box Default Value Empty

I was working on a project where I had a requirement: whenever the user opens the app, the combo box should select a value as blank, and the gallery should give me all the records.

To achieve this, we can provide the Power Apps combo box DefaultSelectedItems as Blank().

In this Power Apps tutorial, I will show you how to work with the Power Apps Combo box default value empty with a simple example.

Power Apps Combo Box Default Value Empty

This section will show you how to set a combo box default value as empty.

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
Power Apps Combo box default value empty

I created a Power Apps Canvas app and added a Combo box and 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, the 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 these below two properties of the combo box:
Items = Distinct('Customer Details',Country)

DefaultSelectedItems = Blank()

Where,

  1. Customer Details = SharePoint list name
  2. Country = SharePoint list column name
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 value as empty.

Conclusion

I hope you have the information to set up a Power Apps combo box default value as blank, and the gallery should filter all the records.

This Power Apps tutorial taught you to set the Combo box default value as blank with a simple scenario.

Also, you may like some more Power Apps tutorials: