How to get data from fieldset in Sencha Touch 2?
extjs, touch
Solution
You should be able to assign an `id` to your field, and then `Ext.getCmp('-yourId-');` or `Ext.get('-yourId-');`
( http://docs.sencha.com/touch/2-0/#!/api/Ext.Component-cfg-id )
Problem
I hava a fieldset in Sencha Touch 2 as follows: ``` { id:'contactForm', xtype: 'fieldset', title: 'Information', items: [ { xtype: 'textfield', label: 'First Name', placeHolder: 'Your First Name', name:'firstName', id:'firstName', }, { xtype: 'textfield', label: 'Last Name', placeHolder: 'Your Last Name', name:'lastName' }, { xtype: 'emailfield', label: 'Email', placeHolder: 'email@example.com' }, { xtype: 'button', height: 37, style: 'margin-left:35%', width: 100, iconAlign: 'center', text: 'Submit', action:'ContactSubmit' }, { xtype: 'hiddenfield', id: 'HNumberOfBedRoom', value:'2' }, { xtype: 'hiddenfield', id: 'HPetFriendlyId', value:'2' } ] } ``` In my controller, I have the following: `refs: { contactForm: '#contactForm' }` I can retrive the value by using ` var frmItems=this.getContactForm().getItems(); console.log(frmItems.items[1]._value);` This works fine but i want to retrieve the values something like ` frm.get('name/id of component') ` is there any way to achieve this?