0

Extjs 4.1.1 xtype: 'combo' not returning the value after submitting the form.

I have an array like user = ['user1','user2',...] and I need a dropdown in form panel. After submitting the form I found that the key values of the arrays are not submitted, rather the displayFields are submitted instead.

psubsee2003
  • 8,563
  • 8
  • 61
  • 79
Dhiman
  • 1
  • 1
  • You're going to have to provide more code for us to help you. This sounds like a misunderstanding of how a combobox works, but I can't be sure without a better example of your code. – Reimius Feb 19 '13 at 15:49

1 Answers1

0

You can solve this issue as below :

var comboVal = Ext.getCmp('combo_id').getValue(); var record = Ext.getCmp('combo_id').findRecord(Ext.getCmp('combo_id').displayField, comboVal); var ComboIDValue = record.get('comboVal');

ComboIDValue is the key value of combo

user1032018
  • 21
  • 1
  • 3