How to make an alphabets only textbox validation


#1

i am creating a signup page and am trying to validate the name textbox to only contain alphabets(no numbers and special characters allowed) but i m not able to figure out how to do it and also i would like to know how to validate email textbox for(@ and .)
plz help


#2

use the Matches method from the tools extenion together with a regex of your choice (do a Google search to find it)

in that extension you also can find the method EmailAddressIsValid

Taifun


#3

which regex should i use in order to validate name textbox i have used this /[a-z]+/g and its not working.
and for email i am not able to find any reliable regex do u have some suggestion about what i should use for both


#4

try the different answers from the Stackoverflow link

you might want to read again my previous answer and use the EmailAddressIsValid method
Taifun


#5

ok i have finally figured out the name textbox validation but still stuck on how to use the EmailAddressIsValid method
i will be grateful if u help me figure this out


#6

what about puting your email address you like to validate into the emailAddress socket?

EmailAddressIsValid

from the documentation: Returns true, if it is a valid email address, else false, Details about the logic used.

from your question it looks like you should do some tutorials to learn the basics…

Taifun


Check out the Thunkable YouTube channel, there are lots of great videos for getting started:
https://www.youtube.com/channel/UCTVZRyybOCDBL2zLXSeQVsw


A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook http://www.appinventor.org/book2 … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor


#7

yes actually i already am


#8

my curiosity precedes my learning speed cant help it!!!