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 / Datacard validation -e...
Power Apps
Unanswered

Datacard validation -e mail

(0) ShareShare
ReportReport
Posted on by 53

Hi

 

I am trying to run a datacard (datacardValue3) validation on email form field  to only show the error if a proper email has not been entered. I have a button to submit the form and only then the errors must show

 

The SharePoint email field is required field.. Here is visible property of my ErrorMessage3 and its text property set to " enter a valid email ""

When the form is run, it does not check for a proper email nor does it display the error . Can you please help?>

 

 

bsimon_1-1598039232960.png

 

 

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Would you not want to test this before submitting the form? I am assuming you are using SubmitForm and it is before the expression you shared. Also assuming this error label is inside the form's data card that has DataCardValue3 text input control. 

     

    If so, can you try this on the submit button's OnSelect? 

    If(
     IsMatch(
     DataCardValue3.Text, 
     Email
     ) && Parent.DisplayMode = DisplayMode.Edit,
     false, 
     true
    )

    Let me know if this works or if I misunderstood something. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

        

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi there just a suggestion:

    why not have the hint text displaying the formatting required and have fill or colour set to

    If(IsMatch(Self.Text,Email)=true,White,Tomato) this way the user will see a red-ish color when the format fails validation
  • bsimon Profile Picture
    53 on at

    hi @PowerAddict 

     

    Thank you. I have many fields on my form that need validation so I am using this to goto next screen

    bsimon_0-1598050215099.png

    and this works but the Error shows immediately as the page loads and does not go away until the field is filled.

    The other fields error correction works as intended, only displays when someone does not fill in something.

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard