PDA

View Full Version : Simple form validation with Sencha Touch



afry
16 Mar 2011, 7:52 AM
I am new to Sencha Touch and would like to validate a textfield (user will enter email address) and a numberfield (user will enter a phone number). These fields are in separate fieldsets. What built-in validations are available in Sencha Touch?

tomalex0
18 Mar 2011, 2:21 AM
Check this

http://www.sencha.com/forum/showthread.php?112719-Best-practice-for-form-validation

afry
18 Mar 2011, 8:14 AM
Thanks.

buffalo billion
30 Jun 2011, 11:09 AM
Thanks tomalex0, this really helps!

Krixus90
25 Aug 2014, 12:21 AM
Hello,


I am trying to add some validation to my Model in order to validate simple html form.
I followed all of the steps in this topic but for some reason my application gets an error in the following line:


var errors = testModel.validate(),message = "";


Error: Uncaught TypeError: undefined is not a function


It doesn`t recognize the validate function.


Thank you in advance!