How to create a function that validates an email input
Options
![KenJ](https://us.v-cdn.net/6037124/uploads/userpics/22CE20SXDPY7/nM63D6JSW2HKB.jpg)
KenJ
Member ✭
HI,
I am trying to create a global function that validates an email address input when called.
I cant seem to find a simple function/way to check if an email address is valid. I am working with a conditional IF statement but hoping for some guidance on where to look?
Thanking you
Best Answer
-
Hi Ken,
I would recommend using our SendGrid snippet to send your users emails to confirm their email. If it is merely about formatting, I would recommend you do a check in the front end because Xano will, by default reject an incorrectly formatted email if the input is set to accept email value types.
If you are passing it through a text field type, Another option to try would be using a regex. Here's a resource to reference and a video tutorial on this feature.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback