PDA

View Full Version : post combobox data



makiavelli
23 Jun 2009, 11:21 AM
Hi all!
I have one problem with combobox.
This is a part of my form.

{
xtype:'combo',
id:'gender',
fieldLabel:'Gender',
labelSeparator:':',
allowBlank:false,
name:'data[gender]',
width: 150,
mode: 'local',
editable: false,
store:[['m','Male'],['f','Female']]
}
When I try to submit the form, this element return to me 'Male' or 'Female' values, not 'm' or 'f', as I try.
Who knows about such error?

Thanks a lot!

aconran
24 Jun 2009, 6:00 PM
Set a hiddenName configuration.

You can also explicitly define what the valueField and displayFields are.