PDA

View Full Version : combo box submits display value instead of valueField



monikaaurus@gmail.com.
6 Sep 2012, 3:29 AM
{
xtype : 'combobox',
queryMode : 'local',
displayField : 'role',
valueField : 'role_id',
autoSelect: true,
//forceSelection : true,
fieldLabel : 'Role',
store : 'RoleOptions',
name : 'role_id',
allowBlank : false,
emptyText : '---Please select role---'


}
This sends displayField value. I have tried hiddenName also. but fail to submit.

sword-it
6 Sep 2012, 6:00 AM
Hi!

you may use name:'your value' to submit in form as the parameter name.
check this:-
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.ComboBox-cfg-name