1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    33
    Vote Rating
    0
    wiwi is on a distinguished road

      0  

    Default Answered: Form Validation

    Answered: Form Validation


    Good morning,

    I'm working on Sencha Touch 2, and I'm lookign for an exemple of that, any docs ?

  2. There is no built in form validation. What you could do it have a model with validation, set the form values to the model and validate the model.

    There are examples of this here:
    http://docs.sencha.com/touch/2-0/#!/api/Ext.data.Model

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,144
    Answers
    3506
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    There is no built in form validation. What you could do it have a model with validation, set the form values to the model and validate the model.

    There are examples of this here:
    http://docs.sencha.com/touch/2-0/#!/api/Ext.data.Model
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    33
    Vote Rating
    0
    wiwi is on a distinguished road

      0  

    Default Hi,

    Hi,


    I have solved that problem couple days left, I used the model as you mentionned , thanks anyway

  5. #4
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Answers
    20
    Vote Rating
    18
    James Goddard will become famous soon enough James Goddard will become famous soon enough

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    There is no built in form validation
    Seriously?