Skip to main content
Community site session details

Community site session details

Session Id : BEBH15C4XidcHV35IGZRYM
Power Apps - Building Power Apps
Answered

valid email address in textinput

Like (0) ShareShare
ReportReport
Posted on 4 May 2020 15:43:00 by Microsoft Employee

how do I make sure the textinput field accepts only the valid email address? in a case where the a user needs to submit their details in order to be contacted there after

  • alrezac Profile Picture
    on 04 May 2020 at 18:50:42
    Re: valid email address in textinput

    Hi,

     

    It looks like LRV was able to answer your questions on how to add this functionality to PowerApps. I just wanted to add in a bit more information for learning here. Feel free to take a look.

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • LRVinNC Profile Picture
    2,297 on 04 May 2020 at 16:34:22
    Re: valid email address in textinput

    It depends on when you want your validation to occur.  If you want immediate feedback to the user at the point they enter the value, then you can put it in the On Change action of the TextInput control. 

     

    If you want to do all your validation at once when the user submits their entries, you can make it part of the On Select for a Submit (or other processing) button.

  • Vhutali Profile Picture
    Microsoft Employee on 04 May 2020 at 16:01:54
    Re: valid email address in textinput

    Hi @LRVinNC

     

    thanks for assisting  

     

    on what property of the textinput should I put that formula?

  • Verified answer
    LRVinNC Profile Picture
    2,297 on 04 May 2020 at 15:49:45
    Re: valid email address in textinput

    Use the IsMatch function to verify the format matches the pattern for an email address.  
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch

     

    Here I set a flag to indicate I have a properly formatted email.
    Set(ValidEmail, If(IsMatch(TextInput1.Text, Email ), true, false)))

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473