cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
meddlema
Helper I
Helper I

Display Error Message When Value Selected in Dropdown

Hello, 

 

I need assistance with displaying an error message when a value is selected in a dropdown. 

 

The dropdown is datacardvalue2 and the values are "New Hire" and "Transfer/Promotion"

 

I want to display the error "Wrong form, please use the Transfer/Promotion form" if the value Transfer/Promotion is selected. 

 

I am still learning Powerapps.  I have tried the following in On Select for the dropdown: 

If(DataCardValue2.Selected.Value = "Transfer/Promotion", " ","Incorrect form, Please return and use the Transfer/Promotion form")

 

How should I handle this?

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Try:

If(DataCardValue2.Selected.Value = "Transfer/Promotion",

Notify("Incorrect form, Please return and use the Transfer/Promotion form"))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

Try:

If(DataCardValue2.Selected.Value = "Transfer/Promotion",

Notify("Incorrect form, Please return and use the Transfer/Promotion form"))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

I tried that an error message is still not displaying.   I put it in the On Select for the dropdown. 

Disregard my previous message.  It is working now

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,664)