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
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.
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.
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)))
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473