PDA

View Full Version : combo valueField doesnt work



sofway
25 Oct 2010, 9:18 AM
Hi,
i have a form with a combobox with a valueField defined but when i send the form, i sends the text of the combo and not the value defined.



{
xtype: 'combo',
fieldLabel: 'Emp',
id: 'combo',
store: new Ext.data.ArrayStore({
fields: ['num', 'text'],
data: [
[1, 'Solo propietario'],
[3, '2 - 3'],
[8, '4 - 12'],
[22, '13 - 30'],
[40, '31 - 50'],
[60, 'Más de 50']
]
}),
value: 'Solo',
displayField: 'text',
valueField: 'num',
mode: 'local',
editable: false,
forceSelection: true,
typeAhead: true,
triggerAction: 'all'
}


Thanks

Animal
25 Oct 2010, 10:03 AM
This is in the FAQ. It really is a FAQ! Probably the most F A Q on the forum!