I would like to accomplish:
- When some item in the ComboBox is selected hide some other field in the form or a complete div.
This is my ComboBox:
var typeIDcombo = new Ext.form.ComboBox({
fieldLabel: 'Type',
name: 'typeid',
store: typeIdData,
displayField:'name',
valueField: 'typeid',
hiddenName: 'typeid',
typeAhead: false,
mode: 'local',
triggerAction: 'all',
emptyText:'Selecteer het type link',
forceSelection: true,
selectOnFocus:true,
allowBlank: false,
value: 'Selecteer een type',
});
I have add listeners to my var form = new Ext.FormPanel. But this does not work.
listeners: [{
'select' : function(field,nval,oval) {
alert(field);
}],
Does someone know a solution for this? Thanks in advance.
selectlistener toExt.FormPanel, when it should forExt.form.ComboBox- Egy Mohammad Erdin