I'm using Extjs4. I've to set combobox display field and value field in form load. setValue() not working for comboxes in form load. I'm using bellow code Please let me know whats wrong with my code.
quiz_edit_form.load({
url: BASE_URL + 'courses/testing/getCourseTest/' + quiz_id,
method: 'POST',
success: function(form, action){
var chap_name = action.result.data.test_chapter_combo;
var less_name = action.result.data.test_lesson_combo;
Ext.getCmp('test_chapter_combo1').setValue(chap_name);
Ext.getCmp('test_lesson_combo1').setValue(less_name);
}
});
Thanks