Page 1 of 1

Validation

Posted: Tue Jul 14, 2015 7:11 am
by fany

Hi can i know what is the javascript for contact number validation at register page?
Like for example, when user registers & then have to enter their contact number, some things such as $,%, alphabet all is not allowed to enter. So how do i do this?


Validation

Posted: Tue Jul 14, 2015 8:38 am
by Illya Stepanov

Hi -

Algorithm of validation checking should be developed by you in this case, there is no ultimate solution.


Validation

Posted: Wed Jul 15, 2015 6:45 am
by fany

is there any example?


Validation

Posted: Wed Jul 15, 2015 7:01 am
by Alena Prykhodko

Unfortunately we do not have any ready example.


Validation

Posted: Wed Jul 15, 2015 8:03 am
by She

Hi Fany,
try to change the properties of the "TEXT COMPONENT", so the textinput accepts numbers only.

Screenshot is in below:
Image

and in special character try to use indexof("$");
or follow this link for sample javascript: http://stackoverflow.com/questions/90...

Goodluck,
She