How to Validate Power Apps Dropdown Control?

This Power Apps tutorial will teach you all the Power Apps Dropdown Validation information.

Using different examples, I will show you how to validate Power Apps Dropdown Control like:

  • Validate the Power Apps dropdown using a button control
  • How to validate the Power Apps dropdown using a text label control
  • Power Apps dropdown validate using another dropdown
  • Working with the Power Apps dropdown validation using a text input

How to Validate Power Apps Dropdown Control Using Button Control

We will discuss validating a Power Apps dropdown using a button control here.

Example:

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

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

2. In Power Apps, a “New Form” is connected to the SharePoint Online list. This form contains a Dropdown field called Project Status, having values like In Progress, Not Started, and Completed.

3. When a user selects the dropdown value as Completed, the Submit button will be visible. Otherwise, the button will be in disable mode, as shown below.

Refer to the below screenshot:

Power Apps Dropdown Control Validation

To achieve the above example, follow the below-mentioned steps. Such as:

4. Create Power Apps Canvas app -> Connect to the SharePoint Online list [Project Tracker]. Once the SharePoint list is added, it will appear under the Data section below.

How to Validate Power Apps Dropdown

5. Insert an Edit form [frm_Projects] and set its DataSource as:

DataSource = 'Project Tracker'

Where,

  • ‘Project Tracker’ = SharePoint Online List

6. To display the SharePoint list fields in the form control, click the Edit fields option and add fields as needed.

7. To get the Edit Form to a New form, just set the Default mode as “New” as in the screenshot below.

Dropdown Validation in Power Apps Canvas app

8. Insert a Button [btn_Submit] control inside the form and set its DisplayMode property code like below:

DisplayMode = If(
    drp_ProjectStatus.Selected.Value = "Completed",
    DisplayMode.Edit,
    DisplayMode.Disabled
)

Where,

  • If() = This Power Apps If() function is evaluate multiple unrelated conditions
  • drp_ProjectStatus = Power Apps Dropdown Name
  • “Completed” = SharePoint Choice Field Value
Dropdown Validation in Power Apps

9. Save, Publish, and Preview the app. If a user selects the project status as “Completed,” then only the button control will be in edit mode, or else it will be in disable mode.

How to Validate a Power Apps Dropdown Control

This is how to validate the Power Apps dropdown control using the button control.

Power Apps Dropdown Validation Using Text Label

Next, we will see how to validate a Power Apps dropdown using a text label.

Example:

1. I have created a Power Apps Screen [ProductScreen]. inside this, I have added new product details using the below controls.

Power Apps ControlsDescription
Text inputTo add the new product name
DropdownWe can use this to add manufacturer values, i.e., [Blank(), Sony, Samsung, Apple, Tata Motors, and, Intel]
Text labelTo add validation message [Please Select the Manufacturer]
Date pickerYou can select the purchased date
Save iconThis icon is used to save the records

2. Whenever the user opens the new Power Apps Form, he/she will get the warning message [Please Select the Manufacturer] under the Dropdown control, i.e., Manufacturer.

3. Once the user selects any value from the dropdown control, the warning message will disappear. Otherwise, the message will appear as shown below.

Refer to the below image:

Dropdown Control Validation in Power Apps

To work around this example, follow the below steps.

4. On the Power Apps Screen -> Add Text input controls -> Insert Dropdown control and set its Items property as:

Items = [
    Blank(),
    "Sony",
    "Samsung",
    "Apple",
    "Tata Motors",
    "Intel"
]

Where,

  • [Blank(), “Sony”, “Samsung”, “Apple”, “Tata Motors”, “Intel”] = Power Apps Dropdown values
Dropdown Control Validation in Power Apps Canvas app

5. Insert a Text label control-> Set its Text and Visible properties as shown below.

Text = "Please Select the Manufacturer"

Visible = IsBlank(drp_Manufacturer.Selected.Value)

Where,

  • “Please Select the Manufacturer” = Power Apps text label value
  • IsBlank() = This Power Apps IsBlank() function tests for a blank value or an empty string
  • drp_Manufacturer = Power Apps dropdown value
Dropdown Control Validation in a Power Apps Canvas app

5. Save, Publish, and preview the app. Whenever the user selects any value from the dropdown, the label text will disappear, or else it will appear under the dropdown control as in the screenshot below.

Dropdown Control Validation in the Power Apps Canvas app

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

Power Apps Dropdown Validation Using Another Dropdown

Let’s see how to validate a Power Apps dropdown based on another dropdown value.

Example:

1. I have a SharePoint Online list named “Monthly Budget Expenses“. This list contains the below fields.

Column NameData Type
ItemIt is a default single line of text, I just renamed it as “Item”
CategoryChoice
BudgetChoice
AmountNumber
Power Apps Dropdown Validation Based On Other Dropdown

2. In Power Apps, there are two dropdown controls, i.e., [Project Budget and Project Category].

3. Whenever the user selects a value from the first dropdown, he/she will get the values in the second dropdown based on the 1st dropdown selected value.

Refer to the below screenshot:

Power Apps dropdown validation based on the other dropdown

To do so, follow the below steps. Such as:

4. On the Power Apps Canvas app -> Connect the SharePoint Online list [Monthly Budget Expenses] -> Insert a Dropdown control [drp_ProductBudget] and set its Items property as:

Items = Distinct(
    'Monthly Budget Expenses',
    Budget.Value
)

Where,

  • ‘Monthly Budget Expenses’ = SharePoint Online List
  • Budget = SharePoint Choice Field Column
Power Apps dropdown validation based on another dropdown

5. Insert another Dropdown control [drp_ProductCategory] -> Set its Items property to the code below.

Items = Distinct(
    Filter(
        'Monthly Budget Expenses',
        Budget.Value = drp_ProductBudget.Selected.Value
    ),
    Category.Value
)

Where,

  • Category.Value = SharePoint Choice Field Column
How to validate Power Apps dropdown based on other dropdown

6. Save, Publish, and Preview the app. The second dropdown [drp_ProductCategory] will display each record from the SharePoint list based on the first dropdown selected value.

How to validate Power Apps dropdown based on the other dropdown

This is all about the Power Apps dropdown validation based on other dropdown controls.

Power Apps Dropdown Validation Using Text Input

Finally, I will show you how to validate a Power Apps dropdown control using text input control.

Example:

1. I will also take the same SharePoint Online List [Monthly Budget Expenses] for this example.

2. In Power Apps, there is a Dropdown control and Text input control. The dropdown control [Select Item] has different values.

3. Whenever the user selects a specific value from the dropdown, he/she will get the selected item value [Price] on the text input.

Refer to the below screenshot:

Dropdown Control Validation in Power Apps

To achieve this example, follow the below steps.

4. On the Power Apps Screen -> Insert a Dropdown control and set its Items property as:

Items = 'Monthly Budget Expenses'

Value = Title

Where,

  • ‘Monthly Budget Expenses’ = SharePoint Online List
  • Title = SharePoint Text Field Value
Dropdown Control Validation from Power Apps Canvas app

5. Insert a Text input control and set its Default property as:

Default = drp_Item.Selected.Amount

Where,

  • drp_Item = Power Apps Dropdown name
  • Amount = SharePoint Number Field Column
Validate PowerApps Dropdown Control

6. Save, Publish, and Preview the app. The text input displays the price value based on the selected item from the dropdown control, as in the screenshot below.

How to Validate Power Apps Dropdown Control

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

Conclusion

This Power Apps tutorial taught in detail information about the Power Apps dropdown validation with different examples. Such as:

  • How to validate the Power Apps dropdown using a button control
  • Validate the Power Apps dropdown using a text label control
  • Power Apps dropdown validate using another dropdown
  • How to work with the Power Apps dropdown validation using a text input

Also, you may like some more Power Apps tutorials: