I have extjs form & php in back end ,in which i have created combo box,
I am able to set value in the combo box, but when i submit the form i am getting the displayfield in post data, and if i manually change the value of combo box i.e from 'two' to 'one' then the valuefield of combo is available in post data, Even the setRawValue gives same result. Here is my code :
var exampleData = [[1,'one'],[2,'two'],[3,'three']];
var cmbJProject = new Ext.form.ComboBox({
width : 120,
hiddenName : 'project',
store : new Ext.data.ArrayStore({
fields : ['value', 'name'],
data : exampleData
}),
valueField : 'value',
displayField : 'name',
typeAhead : false,
mode : 'local',
forceSelection : true,
triggerAction : 'all',
selectOnFocus : true,
id : 'project1',
editable : false
});
cmbJProject.setValue('two');