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 / Formula Help for Email...
Power Apps
Answered

Formula Help for Email Validation

(0) ShareShare
ReportReport
Posted on by 90

This is my formula for "Submit" button.

 

If(Form_2.Valid&&IsMatch(DataCardValue108.Text, Email)=true,SubmitForm(Form_2);UpdateContext({ShowRequired:"N"});ResetForm(Form_2),UpdateContext({ShowRequired:"Y"}));

 

I have a form with some fields which are conditionally required (Ex: Department Drop down selected is "IT", make filling out "Development Effort" required field) and an email address field so that is the reason why I am checking In Form_2.Valid.

 

I am trying to combine my email validation(DataCardValue108 field) as well. But I am getting an error saying IsMatch has some invalid arguments. 

Categories:
  • eka24 Profile Picture
    20,925 on at

    Try

    If(Form_2.Valid&&IsMatch(DataCardValue108.Text, Email),SubmitForm(Form_2);UpdateContext({ShowRequired:"N"});ResetForm(Form_2),UpdateContext({ShowRequired:"Y"}))

     

    If you have errors explain further Form2.Valid

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

    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.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Lana ,

    Could you please share a bit more about the error message?

     

    Based on the formula that you mentioned, I could not find any syntax error with it. I have made a test on my side, the IsMatch function works well.

     

    Please consider modify your formula as below:

    If(
     Form_2.Valid = true && IsMatch(DataCardValue108.Text, Match.Email) = true,
     SubmitForm(Form_2);UpdateContext({ShowRequired:"N"});ResetForm(Form_2),
     UpdateContext({ShowRequired: "Y"})
    );

    Note: I assume that the DataCardValue108 is a Text Input box inside your Edit form. Please make sure you have referenced proper email address field in your above If function.

     

    Regards,

  • Lana Profile Picture
    90 on at

    I found the answer. I had just Email instead of Match.Email.

     

    Thank you for taking the time to answer.

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard