Setting the Default Selected Value in a PowerApps Combo Box Control

Introduction

Just like the title says, we are going to get right to the point. If you are struggling or are unable to see how to set the default value of a Combo Box control in PowerApps when all you have is a string, read on.

Solution

Here is the combo box we are working with in this example. A basic PowerApps Combo Box.

We’ve just added a Combo Box control to the our design canvas and set the Items Property to: ["Active", "Inactive", "Planned", "In Progress"]

Setting the default value of a PowerApps Combo Box with a string value in a single step.

Setting the default value of a PowerApps Combo Box with a string value in a single step.

The PowerApps Combo Box Default Property

In our case, we have retrieved a string value from the Common Data Service (CDS) and would like to set it as the default value of the Combo Box.

Our first instinct was to set the Combo Box’s Default property. Rather than this, set the DefaultSelectedItems property with an array.

For a single default value, use this statement:

  • [“Active“] or First([variableName.Status])

    • This is an array with a single value in it

For multiple values, use an array with multiple values in it:

  • [“Active“, “Inactive“]