How can i put form validations to current admission form?

28 views
Skip to first unread message

Sai Kiran

unread,
Oct 3, 2013, 1:33:36 AM10/3/13
to swif...@googlegroups.com
I need to put form validations to admission form like name field must accept only characters,  internal id must accept only numerics, email validations, password must atleast 8 characters long etc...Please tell me how can i  put the above javascript validations?

Thanks in advance...

Doug Poulin

unread,
Oct 3, 2013, 11:10:39 AM10/3/13
to swif...@googlegroups.com
Sir,

I would think if you are at all experienced with Javascript, what you are proposing is fairly simple.
It could also be done via PHP, but the entire form would need to be submitted for the validation to occur.
Checking for 8 character minimum, for example:
}, {
    name: 'minlength',
    display: 'min length',
    rules: 'min_length[8]'

Here is a great link
http://rickharrison.github.io/validate.js/

The whole library is right there for your use!

Good luck!

Doug



On Thu, Oct 3, 2013 at 1:33 AM, Sai Kiran <saiki...@gmail.com> wrote:
I need to put form validations to admission form like name field must accept only characters,  internal id must accept only numerics, email validations, password must atleast 8 characters long etc...Please tell me how can i  put the above javascript validations?

Thanks in advance...

--
You received this message because you are subscribed to the Google Groups "Swifttide" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swifttide+...@googlegroups.com.
To post to this group, send email to swif...@googlegroups.com.
Visit this group at http://groups.google.com/group/swifttide.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages