How to Set List Box Default Value in Power Apps?

If you’ve been searching for a way to Set default values for a Power Apps List Box control, your search is over! Our Power Apps tutorial will show you the exact steps to learn how to set List box default value in Power Apps.

The Power Apps List box control has a property called Select Multiple, allowing users to select multiple items from the list. If you’re thinking of setting multiple default values, this tutorial will provide an answer.

Moreover, you will learn how to assign a default value to the Power Apps list box control and set the default value as blank for the Power Apps list box with various examples.

How to Set List Box Default Value in Power Apps

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

  • Set the default value of the Power Apps List box manually
  • Power Apps set the default value of the List box using a SharePoint list

Power Apps Set List Box Default Value Manually

Follow the steps below to set a Power Apps List box control default value manually.

Example:

I created a Power Apps canvas app and added a List box control containing some tool names [added manually] like Power Apps, Power Automate, Power BI, and Power Virtual Agent.

Next, whenever the user opens or loads the app, the Power Apps List box control will automatically display its default value Power Apps as shown below:

How to set Power Apps List box default value

Follow the below steps to achieve this:

  • Sign into Power Apps with your valid Microsoft 365 Credentials.
  • Create a Blank canvas app -> On the Power Apps screen, insert a List box control -> Set its Items property to:
[
    "Power Apps",
    "Power Automate",
    "Power Bi",
    "Power Virtual Agent"
]
Power Apps List box default
  • Select the Power Apps List box -> Set its Default property to:
"Power Apps"
Power Apps set the List box default value
  • Save, Publish, and close the app. Then, reopen and preview the app. The List box control value will be selected as “Power Apps” by default.
Power Apps set the List box default value manually

This is how to manually set the Power Apps List box control default value. Moving forward, we will see how to set a Power Apps List box control default value using a SharePoint list.

Power Apps Set List Box Default Value From SharePoint List

Connect the SharePoint list as your data source to set a Power Apps List box 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
How to Set Default Value in Power Apps List Box Control using SharePoint list

I created a Power Apps Canvas app and added a List box control connected to the above SharePoint list column [Country].

Next, the Power Apps List box control will automatically display its default value [US] whenever the user opens or loads an app.

How to set List box default value in Power Apps

Let me show you how to achieve this:

Power Apps List box default value using SharePoint list
  • On the Power Apps screen, insert a List box control -> Set its Items property to:
Distinct(
   'Customer Details',
    Country
)

Where,

  1. Customer Details = SharePoint list name
  2. Country = SharePoint list column name
Set Power Apps List box default value
  • Select the Power Apps List box -> Set its Default property to:
"US"

Where,

  1. US = SharePoint list column value
Power Apps set List box default value using a SharePoint list
  • Save, Publish, and close the app. Then, reopen and preview the app. The List box control value will be selected as “US” by default.
How to set Power Apps List box default value using SharePoint list

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

Power Apps List Box With Multiple Default Values

The Power Apps list box control has a Select Multiple property, allowing users to select more than one item from the list.

However, the Power Apps List box control lacks a feature enabling the setting of multiple default values.

The Power Apps List box control is missing the DefaultSelectedItem property, and the Default property only accepts text and not record.

Set Power Apps List Box Default to Current User

Suppose you may have a List box connected to the Office365Users; how do you set the Power Apps List box default value as the current user? Follow the below steps to achieve it!

Example:

I created a Power Apps canvas app and added a List box control. The list box control is connected to the Office365Users connector.

When a user opens or loads an app, the Power Apps List box control automatically displays the current user name.

Set List box default value to the current user in Power Apps

Follow the below steps to achieve this:

  • In Power Apps, connect the data source to the Office365Users connector as shown in the below image:
Power Apps List box default value
  • Insert a List box control -> Set its Items property to:
Office365Users.SearchUser()
Power Apps set List box default value to the current user
  • Select the List box control -> Set its Default property to:
User().FullName
Set Power Apps List box default value to the current user
  • Save, Publish, and Close the app. Then, reopen and preview the app. The List box control value will be selected as a current user, as shown below:
How to set Power Apps List box default value to the current user

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

Power Apps List Box Default Value to Blank

This section will show you how to set a List box default value as empty or blank.

Example,

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

Whenever the user opens or loads the app, by default, the List 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 List box default value to Blank

Follow the below steps to achieve this:

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

Where,

  1. Customer Details = SharePoint list name
  2. Country = SharePoint list column name
How to set Power Apps List box default value to Blank
  • Select the List box control -> Set its Default property to:
Blank()
Set Power Apps List box default value to Blank
  • Insert Gallery control -> Set its Items property to:
If(
    lst_Blank.Selected.Value = Blank(),
    'Customer Details',
    Filter(
        'Customer Details',
        Country = lst_Blank.Selected.Value
    )
)

Where,

  1. lst_Blank = List box control name
  2. Customer Details = SharePoint list name
  3. Country = SharePoint list column name
Set List box default value to Blank in Power Apps
  • Save, Publish, and Close the app. Then, reopen and preview the app. By default, the List box control value will be selected as blank, and the gallery will display all the records.
How to set List box default value to Blank in Power Apps

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

Conclusion

I am confident that this Power Apps tutorial helped you to Set a Power Apps List box default value.

Moreover, I believe you have an answer to how to set multiple default values for the Power Apps List box control.

Lastly, I have covered how to set the Power Apps List box default value to the current user and to set a Power Apps List box default value as Blank.

Also, you may like some more Power Apps tutorials: