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 / Help with validating e...
Power Apps
Answered

Help with validating email when user input email and before power automate process

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

I am a newbs in coding. need some advice from the experts here.

 

I am working on a new power apps form with fields from sharepoint list and a power automate process to capture the input from the power apps form and also the pen input image.

Question: How can i add in email field validation into my current setup when upon user enter the email address to check if that input is valid as an email address ?

 

CheeKiong_0-1708399346598.png

 

CheeKiong_1-1708399351128.png

 

 

Categories:
  • Kirkby Profile Picture
    659 Moderator on at

    Hi @CheeKiong 

    Please try this. 

    Power Apps Guide - Email - Complete guide to validating email addresses - Power Apps Guide - Blog

    If(IsMatch(yourEmailAddressCardName.Text, Match.Email), // Matches an email address that contains an "at" symbol ("@") and a domain name that contains a dot (".") .+\@.+\\.[^\\.]{2,}

    ...AtcionThatYouWant, ....

    )

    IsMatch, Match, and MatchAll functions - Power Platform | Microsoft Learn

     

    Kirkby

  • CheeKiong Profile Picture
    16 on at

    Hi @Kirkby 

     

    thanks!! where should i place this code ?   should i replace this with datavcardalue.text? 

    this is my exisiting script 

     

    peninputtest.Run(DataCardValue10.Text,DataCardValue2.Text,DataCardValue3.Text,DataCardValue5.Text,DataCardValue6.Text,DataCardValue4.Text,DataCardValue7.Selected.Value,
           {file: {
                contentBytes: PenInput2.Image,
                name: "sign"
            }
        });
       
    ResetForm('P&Cform');
    Reset(PenInput2);
       
           
  • Verified answer
    Kirkby Profile Picture
    659 Moderator on at

    The simplest way to use the current code as-is is....

     
    If(IsMatch(yourEmailAddressCardName.Text, Match.Email),
     
    peninputtest.Run(DataCardValue10.Text,DataCardValue2.Text,DataCardValue3.Text,DataCardValue5.Text,DataCardValue6.Text,DataCardValue4.Text,DataCardValue7.Selected.Value,
           {file: {
                contentBytes: PenInput2.Image,
                name: "sign"
            }
        });
       
    ResetForm('P&Cform');
    Reset(PenInput2),
     
     Notify("Email address is invalid",NotificationType.Error)  // or other way of notification 
     
     
    )  //end of If
     
    <<--please refer to Validation for Email Address Field - Email format field validation. 
    That is more intuitive way to alert user

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard