View Full Version : combo box question.

8 Jul 2010, 10:18 AM
I have a xml file as folows


and the corresponding combobox with following settings -

var osCombo = new Ext.form.ComboBox({
id: 'osCombo',
store: osStore,
displayField: 'name',
valueField: 'id',
hiddenName : 'osId',
typeAhead: true,
mode: 'local',
fieldLabel: 'OperatingSystems',
anchor: '100%',
forceSelection: true,
triggerAction: 'all',
emptyText:'Select an OS...',

I want hiddenvalue field to be set to

how do I do that ? My store mapping looks like -

fields: [
// the 'name' below matches the tag name to read, except 'availDate'
// which is mapped to the tag 'availability'
{name: 'id', type: 'string'},