Results 1 to 6 of 6

Thread: How to display error messages similar to ExtJs

  1. #1
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    285
    Answers
    11
    Vote Rating
    -9
      0  

    Default Answered: How to display error messages similar to ExtJs

    Hello,

    How can I display error messages in Touch similar to the way ExtJs displays them? Or is there another method of doing this in Touch?

    Thank You

  2. I'm assuming you mean in form fields. There is not validations on form fields in Sencha Touch. You could probably just simply add a component with text under the field that has an error or even create a div and append to the field where you want it.

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    I'm assuming you mean in form fields. There is not validations on form fields in Sencha Touch. You could probably just simply add a component with text under the field that has an error or even create a div and append to the field where you want it.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default

    Using validations into the model is not validations on form fields?

    userModel:
    Code:
    validations: [
    {type: 'presence',  field: 'User', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Password', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Language', message: 'xxxxxxxxxxxxx'},

  5. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Quote Originally Posted by izak18 View Post
    Using validations into the model is not validations on form fields?

    userModel:
    Code:
    validations: [
    {type: 'presence',  field: 'User', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Password', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Language', message: 'xxxxxxxxxxxxx'},
    It's not on the form fields, those are on the model fields.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default

    yeah, you're right, but is kind of validate a form fields too, because you have to submit the form and will validate it in that way by the model, it's a suggestion.

  7. #6
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    285
    Answers
    11
    Vote Rating
    -9
      0  

    Default

    Thanx Guys.All good answers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •