cgi-bin
3 Jul 2007, 7:32 AM
Bug1:
When using hiddenName, if you type in a value that is not one of the drop-down values (from store), it does not submit the typed in value, it submits either an empty value or whatever the last selected value was (see bug2).
Bug2:
Form has ComboBox, forceSelection is false.
Select a value
Change your mind and delete the value.
emptyText is again displayed
When submitted it sends the last value you selected
I tested this in 1.0.1a and 1.1-beta2
titleStore = new Ext.data.SimpleStore({
fields: ['value','text'],
data: [['Mr.','Mr.'], ['Ms.','Ms.'], ['Mrs.','Mrs.'], ['Miss','Miss']]
});
new Ext.form.ComboBox({
name: 'titleCB',
hiddenName: 'title',
fieldLabel: 'Title',
store: titleStore,
displayField: 'text',
valueField: 'value',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText: 'Type or Select...',
selectOnFocus: true
})
When using hiddenName, if you type in a value that is not one of the drop-down values (from store), it does not submit the typed in value, it submits either an empty value or whatever the last selected value was (see bug2).
Bug2:
Form has ComboBox, forceSelection is false.
Select a value
Change your mind and delete the value.
emptyText is again displayed
When submitted it sends the last value you selected
I tested this in 1.0.1a and 1.1-beta2
titleStore = new Ext.data.SimpleStore({
fields: ['value','text'],
data: [['Mr.','Mr.'], ['Ms.','Ms.'], ['Mrs.','Mrs.'], ['Miss','Miss']]
});
new Ext.form.ComboBox({
name: 'titleCB',
hiddenName: 'title',
fieldLabel: 'Title',
store: titleStore,
displayField: 'text',
valueField: 'value',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText: 'Type or Select...',
selectOnFocus: true
})