How to Check if Power Apps Combobox Has a Selected Value?

In this tutorial, I will explain how to check if Power Apps Combobox has a selected value or not using various examples like:

  • Display label value if Power Apps Combobox is empty
  • Disable the Power Apps Button if Combobox is empty

Check if Power Apps Combobox has a selected value

Here, I will show you two scenarios for checking whether the Power Apps Combobox has a value.

Scenario 1: [Display Label Text If Power Apps Combobox Empty]

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

Column NameData Type
NameTitle
VendorsLookup
Combo box selected value in Power Apps

In Power Apps, there is a Combo box control that contains the values from the above SharePoint list [Vendor] title column.

When a user doesn’t select any value from the Power Apps combo box control, the text label will display as “Blank”.

Power Apps check if the Combo box has selected value

Also, if the user selects a value from a combo box control, the text label will display as “Not Blank,” as shown below.

Check if the Combo box has selected value in Power Apps

Let me show you how you achieve this:

  • On the Power Apps screen, insert a Combo box control -> Set its Items property to:
Distinct('Product List',Title)

Where,

  1. Product List = SharePoint list name
  2. Title = SharePoint list title column
Power Apps check if Combo box has selected value
  • Insert Text label control -> Set its Text property to:
If(
    IsEmpty(Cmb_Product.SelectedItems) || IsBlank(Cmb_Product.SelectedItems) || Len(Cmb_Product.Selected.Value) <= 0,
    "Blank",
    "Not Blank"
)

Where,

  • Cmb_Product = Combo box control name
Check if Power Apps Combobox has a selected value
  • SavePublish, and Preview the app. When a user doesn’t select any value from the Power Apps combo box control, the text label will display as “Blank”.
Power Apps how to check if Combo box has selected value

This is how to check if the Power Apps combo box has a selected value.

Scenario 2: [Disable Power Apps Button if Combobox is empty]

In the screenshot below, an Edit form is connected to the above SharePoint list.

When the user doesn’t select any value from the Power Apps combo box control, the button control won’t be visible.

Combo box check if selected value in Power Apps

The button control will be enabled if the user selects a value from the Power Apps combo box control.

How to check the Power Apps Combo box has selected value

To achieve this, follow the below steps:

  • On the Power Apps screen, insert an Edit form -> Connect the DataSource to the above SharePoint list.
'Product List'

Where,

  • Product List = SharePoint list name
Power Apps Combo box check if selected value
  • In the Edit form, insert a Button control -> Set its DisplayMode to:
If(
    IsBlank(DataCardValue4.Selected),
    DisplayMode.Disabled
)

Where,

  • DataCardValue4 = Combo box control name
How to check Power Apps Combo box selected value
  • SavePublish, and Preview the app. When a user doesn’t select any value from the Power Apps combo box control, the button control will be invisible.
Combo box check selected value in Power Apps.

This is how to check if the Power Apps combo box has a selected value based on a button control.

Conclusion

I hope you now know how to check if a Power Apps Combobox has a selected value using various examples.

You may also like:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…