I know this questions most likely been answered 1000+ times already but i cant seem to find anything about it through the forum search.
I have a simple form and wish to change the values of the element when a certain action is triggered.
Now if i have the following
Code:
new Ext.form.FormPanel({
id: 'form',
title: 'Form Test',
items: [{
xtype:'fieldset',
title: 'Partner Details',
collapsible: true,
autoHeight:true,
defaults: {width:250},
defaultType: 'textfield',
items :[{
fieldLabel: 'Name',
disabled: true
},{
fieldLabel: 'Email',
name: 'email'
}]
}]
});
How would i reference Name and Email to set the values? should i really set and ID for both of them so that i can use Ext.getCmp()? or is there a better/simpler way??
Sorry for such a simple question - i know it terrible, you would have thought i would have caught on by now!