web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show error message whe...
Power Apps
Answered

Show error message when invalid email

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to create a submit form where the user has to enters a valid email.

 

I got the e-mail validation setup with the following:

 

If(IsMatch(DataCardValue5.Text, Match.Email), SubmitForm(EditForm1))

But I also want to show an error message of some sort when the email is not correct or when there is no value entered.

 

I'm fairly new with PowerApps, any help is appreciated!

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @Anonymous 

    One way to show an error message is to use the Notify function.

     

    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-showerror

     

    To use this, you can amend your formula like so:

     

    If(IsMatch(DataCardValue5.Text, Match.Email), 
    SubmitForm(EditForm1),
    Notify("Invalid email address", NotificationType.Error)
    )

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    In addition to @timl's Notify function, if you want to actually put a message on your form, you can add a label with your message and set the Visible property to:

       !IsMatch(DataCardValue5.Text, Match.Email)

     

    Or even change the color of the textbox, by changing the Fill property of the DataCardValue5 to:

       If(!IsMatch(DataCardValue5.Text, Match.Email), Red, White)  (or whatever colors you want.)

     

    Hope this adds a little help.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @timl Thank you very much, this is what I was looking for! I got it working.

     

    @RandyHayes Thanks a lot for the extra info, this is very helpful!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard