ExtJS: How to submit both: combobox value and text using standardSubmit?
If you want to submit two values, you will need two fields. If you want both fields to be controlled by one field, you should make one field hidden, and update it when the first is updated:
var hiddenField = new Ext.form.Hidden({
name: 'comboDisplay'
});
var combo = new Ext.form.ComboBox({
xtype: 'combo',
// ...
listeners: {
select: function(combo, record) {
hiddenField.setValue(record.data['display']);
}
}
});