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 / Text Input Email Valid...
Power Apps
Answered

Text Input Email Validation

(0) ShareShare
ReportReport
Posted on by 7

Hello,

 

So I am currently working on a form that requires a user to input their email address correctly. I know that there are several posts related to this but I could not find any that had the same issue that I am finding. The problem is that with the IsMatch function with the logical test of the input against Match.email, the user is still able to input an email address without the .xxx portion attached to the end (i.e. someone@aol) Attached is my current code, the gvColor variable is just making the box yellow if it doesnt match...

 

(If(IsMatch(DataCardValue17.Text,Match.Email),SubmitForm(EditForm1),Set(gvColor8,Yellow)))

 

So I want to make sure they add the .xxx portion to the email. Sorry if this has been answered already, I am very new to powerapps and have been relying on this forum for many of the quirky issues that I have been running into. Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @tebinger 

    You could use a reflex pattern instead if you don’t like the PowerApps one.

     

    (If(IsMatch(DataCardValue17.Text,”b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b”),SubmitForm(EditForm1),Set(gvColor8,Yellow)))

     

    Make sure to replace the double quotes in my code with your own.  They don’t transfer over properly when I am typing from mobile

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

     

  • tebinger Profile Picture
    7 on at

    Thank you for the quick response!

     

    I tried the reflex pattern as you put it exactly. The issue is still prevalent for whatever reason, in the sense that i can enter person@aol and it will accept it. What you said should work in theory as I look at it but for whatever reason does not. I am going to try and replace all the special characters from your response right now. Could there be anything else letting this input pass the condition of the if statement? I also tried tying an EndsWith to my original if statement like this : && EndsWith(DataCardValue17.Text,".com") which is sufficient in my case since all of the emails in our user database end with .com but still will alow it to pass through without it. Thanks for the help either way!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard