How to Validate Power Apps Dropdown Control?

A few weeks back, I got a task to validate my Power Apps dropdown that they aren’t blank. A warning message will display if the dropdown is blank: “Please Select an Item.”

In this Power Apps tutorial, I will explain how to validate Power Apps Dropdown control using a Button. Also, we will see how to validate a Power Apps dropdown using a text label control with a simple scenario.

Validate Power Apps Dropdown Control Using Button

Now, let us validate the Power Apps dropdown control using a button control.

Example:

I have a SharePoint list named Project Tracker. This list contains the below fields.

Column NameData Type
Project NameIt is a default single line of text, and I renamed it “Project Name.”
DescriptionMultiple lines of text
Project StatusChoice
Power Apps Dropdown Validation

On my Power Apps screen, I have added an Edit form connected to the above SharePoint list. The form contains a Dropdown control connected to the SharePoint list choice column. The dropdown has 3 choice values:

  1. Completed
  2. In Progress
  3. Not Started

Now, I’ll validate the Power Apps dropdown control. The Button will be visible when a user selects the dropdown value as Completed. Otherwise, the button will be in disable mode, as shown below.

Power Apps Dropdown Control Validation

To achieve it, follow the below-mentioned steps:

  • Insert an Edit form -> Set its DataSource property to:
'Project Tracker'

Where,

  1. ‘Project Tracker’ = SharePoint Online List
Dropdown Validation in Power Apps Canvas app
  • Insert a Button control -> Set its DisplayMode property code like below:
DisplayMode = If(
    drp_ProjectStatus.Selected.Value = "Completed",
    DisplayMode.Edit,
    DisplayMode.Disabled
)

Where,

  1. drp_ProjectStatus = Power Apps Dropdown Name
  2. “Completed” = SharePoint Choice Field Value
Dropdown Validation in Power Apps
  • Save, Publish, and Preview the app. If a user selects the project status as “Completed,” then the button will be in enable mode, as shown below:
How to Validate a Power Apps Dropdown Control

Validate Power Apps Dropdown Using Text Label

Now, let’s check how to validate the Power Apps dropdown using a text label control.

Example:

I have a Dropdown control and Text label control. Whenever the user doesn’t select a value from the dropdown menu, it will show me the warning message “Please Select the Manufacturer,” as shown below:

Dropdown Control Validation in Power Apps

To achieve it, follow the steps below:

  • On the Power Apps Screen, insert a Dropdown control -> Set its Items property as:
[
    Blank(),
    "Sony",
    "Samsung",
    "Apple",
    "Tata Motors",
    "Intel"
]

Where,

  1. [Blank(), “Sony,”Samsung,” “Apple,” “Tata Motors,” “Intel”] = Power Apps Dropdown values
Dropdown Control Validation in Power Apps Canvas app
  • Insert a Text label control and set its Text and Visible properties as shown below.
Text = "Please Select the Manufacturer"

Visible = IsBlank(drp_Manufacturer.Selected.Value)

Where,

  1. “Please Select the Manufacturer” = Power Apps text label value
  2. IsBlank() = This Power Apps IsBlank() function tests for a blank value or an empty string
  3. drp_Manufacturer = Power Apps dropdown value
Dropdown Control Validation in a Power Apps Canvas app
  • Save, Publish, and preview the app. If the dropdown control is empty or blank, a warning message will appear: “Please Select the Manufacturer.” Otherwise, the warning message will not appear.
Dropdown Control Validation in the Power Apps Canvas app

This is how to validate a Power Apps dropdown control using a text label.

Moreover, you may also like some more Power Apps articles:

I hope you found this article helpful. This article taught us how to validate a Power Apps Dropdown control using a Button and text label control.

>

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…