-
4 Jun 2012 10:03 AM #1
Answered: How to display error messages similar to ExtJs
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
-
Best Answer Posted by mitchellsimoens
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.
-
6 Jun 2012 4:34 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
- Answers
- 3106
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 @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
6 Jun 2012 7:33 AM #3
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'},
-
6 Jun 2012 7:48 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
- Answers
- 3106
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
6 Jun 2012 7:55 AM #5
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 Jun 2012 4:22 AM #6
Thanx Guys.All good answers.


Reply With Quote