-
6 Jun 2012 3:19 AM #1
Answered: Get form field by name
Answered: Get form field by name
Hi all,
How Can I get a form field by name and compare it with a string ?
-
Best Answer Posted by onecool
Its also a solution of the problem.... Thank you mitchel

-
6 Jun 2012 7:00 AM #2
You can set a "id" to the form and call it by his id, somethig like this:
Good luck.Code:var instalacionFormView = new Ext.form.FormPanel({ id: 'instalacionFormView', fullscreen: true, scroll: 'vertical', items: []....
-
7 Jun 2012 9:50 AM #3
Thks u Izak for replying, i found the solution by usinf getValue method of the form field
-
8 Jun 2012 5:51 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
Would not use id, very constricting
I see you got your answer which is great. I would like to offer another way if you needed the field instance:
Where FieldName is the name of your field.Code:formpanel.down('field[name=FieldName]')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.
-
8 Jun 2012 7:10 AM #5
Its also a solution of the problem.... Thank you mitchel



Reply With Quote