Introduction

When building apps in PowerApps, you often work with controls that allow users to select or enter data, such as Dropdowns, ComboBoxes, and ListBoxes. Two properties Default and DefaultSelectedItems are crucial for controlling what the user sees initially.

1. Default

The Default property specifies the value that a control initially displays when the app loads. It applies to controls that accept a single value, such as Text Input, Dropdown, Radio Button, or Toggle controls.

Key Points:

Example Usage:
Suppose you have a Dropdown for selecting a country:

Dropdown1.Items = ["USA", "Canada", "India"]
 Dropdown1.Default = "Canada"

Dynamic Default:
You can also use a formula to dynamically set the default based on context:

Dropdown1.Default = If(User().Email = "[email protected]", "USA", "India")

This sets USA for the admin user and Mexico for everyone else.

2. DefaultSelectedItems

The DefaultSelectedItems property is used primarily for multi-select controls, like ComboBoxes and ListBoxes. It determines which items are initially selected when the app or form loads.

Key Points:

Example Usage:
Suppose you have a ComboBox for selecting multiple programming languages:

ComboBox1.Items = ["PowerApps", "Python", "JavaScript", "C#"]
ComboBox1.DefaultSelectedItems = ["Python", "JavaScript"]

Dynamic Example with Data Source:
Imagine a SharePoint list storing user roles:

ComboBoxRoles.Items = Choices(UserRoles.Role)
ComboBoxRoles.DefaultSelectedItems = Filter(UserRoles, UserEmail = User().Email)

3. Key Differences

PropertySingle-selectMulti-selectType of Value
Default✅ Yes❌ NoSingle value (text, number, Boolean)
DefaultSelectedItems❌ No✅ YesTable/record that matches Items source

4. Common Scenarios

  1. Pre-fill a user’s department:

    • Control: Dropdown

    • Property: Default

    • Formula: Default = User().Department

  2. Load saved selections in an edit form:

    • Control: ComboBox

    • Property: DefaultSelectedItems

    • Formula: DefaultSelectedItems = ThisItem.Skills

  3. Conditional defaults:

    • Formula: If(Today() > Date(2026,2,18), "Expired", "Active")

    • Useful for dynamic forms or dashboards.

5. Tips and Best Practices

Conclusion

Understanding Default and DefaultSelectedItems is essential for creating user-friendly, dynamic, and data-driven PowerApps applications. By setting these properties correctly, you can:

Mastering these properties ensures your apps feel intelligent and context-aware.