View Full Version : combo with local store

6 Jun 2011, 1:22 AM
Hello !

I have a simple combobox with a local store in a form.
When i submit the form i became the name from the country.
But i need the id from the country.
What is wrong in my code ?

xtype: 'combo',
fieldLabel: 'Land *',
width: 150,
id: 'country',
mode: 'local',
store: new Ext.data.SimpleStore({
fields: ['id', 'country'],
data: [[52,'Deutschland'],[174,'Österreich'],[198,'Schweiz']]
displayField: 'country',
valueField: 'id',
forceSelection: true,
triggerAction: 'all',
allowBlank: false

Does anyone have any ideas ?

Your sincerly


6 Jun 2011, 1:34 AM
look at hiddenName config

6 Jun 2011, 1:43 AM
Hello !

Mea culpa :">.

Thanks, Stephan