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 News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,665)