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 / Power App validation f...
Power Apps
Unanswered

Power App validation fails with incorrect data as well.

(0) ShareShare
ReportReport
Posted on by 76

Kuma0002_0-1718796656542.png

In Power app forms - As below I have a field called "Supplier Email" , when user enter the correct email address then below text "Please Enter Valid Email ID" gets disappear and form get submitted. concern is when user enter the invalid Email ID also it gets submitted but ideally it shouldn't. How to restrict the user that only correct email id will submit or else it should not success and throw error message?

I have a formula on "Supplier Email" field >> on Error Message >> Text Property >> 

Coalesce(
    Parent.Error,
    If(
        !IsMatch(
            DataCardValue8.Text,
        "[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*"),
        "Please Enter Valid Email ID")
    )

 

Please help to resolve this situation.

 

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @Kuma0002 

     

    try this please:

    Coalesce(
     Parent.Error,
     If(
     !IsMatch(
     DataCardValue8.Text,
     "[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*"),
     "Please Enter Valid Email ID")
    )
    
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Kuma0002 Profile Picture
    76 on at

    Hi @mmbr1606 I am not asking the code, I already have the code with me. concern is that when user enter the invalid input like ex. XXX.com (although it shows red by validation but still that gets submitted) then also they are able to submit the form. If user able to submit it with incorrect data then whats the use if validation to put in there, which property i need to use to restrict them ? I have already placed the code in Border Color , Color and On Change property. Please suggest.

  • Kuma0002 Profile Picture
    76 on at

    @WarrenBelz If you don't mind, would you be able to help me here?

    In Power app forms - As below I have a field called "Supplier Email" , when user enter the correct email address then below text "Please Enter Valid Email ID" gets disappear and form get submitted. concern is when user enter the invalid Email ID, validation shows error, but if user click on submit button, then form gets submit How to restrict the user that only correct email id will allow to submit or else it should not success and throw error message?

    I have my formula applied on "Supplier Email" field >> on Error Message >> Text Property >> 

    Coalesce(
        Parent.Error,
        If(
            !IsMatch(
                DataCardValue8.Text,
            "[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*"),
            "Please Enter Valid Email ID")
        )
  • Kuma0002 Profile Picture
    76 on at

    Hi @mmbr1606 @WarrenBelz Please find the snippet below along with the datacard property that i have used.

     

    Kuma0002_0-1718871760229.png

     

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard