PDA

View Full Version : ComboBox Post displayField instead of valueField



giraffezw
21 Oct 2010, 1:25 AM
why submit this combo the displayField text and not the valueField? need the real value (for example "close") ...

{
xtype: 'combo'
,fieldLabel: 'Status'
,allowBlank: false
,name: 'state'
,anchor: '100%'
,typeAhead: true
,triggerAction: 'all'
,value: 'open'
,mode: 'local'
,store: new Ext.data.ArrayStore({
id: 'stateStore'
,fields: [
'state'
,'displayText'
],
data: [["open", "offen"], ["pending", "in Bearbeitung"], ["closed", "fertiggestellt"], ["denied", "abgelehnt"]]
})
,valueField: 'state'
,displayField: 'displayText'
}thx, markus

Condor
21 Oct 2010, 1:45 AM
name: 'state' -> hiddenName: 'state'