From: David <da...@df...> - 2004-05-14 14:12:01
|
I think in most cases people don't want to allow empty strings entered in email fields. Always adding two checks is very anoying and likely to be forgotten. Furthermore most of the users won't really read the manual that carefully to notice that empty string are accepted. If I hear about an email validator I expect it to reject empty string as they are not a valid email address. Also if you want to allow empty values and forget to add the acceptEmpty (or whatever) attribute people will complain because they get errormessages but if you don't want to allow empty values and don't know that the email check does you will run into problems with empty fields in your database, email without sender and maybe not even notice it. I strongly vote for an additional attribute to allow empty values but to reject them by default. They're just not an email address, it's that easy... (same for url) ;) For the syntax validator it's even more obvious ihmo. People who build regexps will know how to make them match empty values as well. (but still we could add the acceptEmpty attribute) - david On Fri, 14 May 2004 13:23:41 +0200 Katana <ka...@ka...> wrote: > > I just noticed that the email js validator accepts empty fields as > > valid email addresses. I don't think this is the wanted behaviour in > > most cases. > > In some it might be however, so I suggest to add an optional > > parameter like acceptEmpty to the email and url validators. > > > > What do you think? > It works the way I wanted it to... In my opinion, to make a field > mandatory you use the empty validator, and to check its content you > use another validator. So checking if an an email field has been > filled would require empty then email validators. Maybe we should add > a note to all the validators that check a field content (syntax, > email...) saying that these validators do not check if the field has > been filled; what do you think ? > > Katana > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Formsess-devel mailing list > For...@li... > https://lists.sourceforge.net/lists/listinfo/formsess-devel > |