Results 1 to 2 of 2

Thread: combo valueField doesnt work

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    91

    Default combo valueField doesnt work

    Hi,
    i have a form with a combobox with a valueField defined but when i send the form, i sends the text of the combo and not the value defined.

    Code:
    {
    															xtype: 'combo',
    															fieldLabel: 'Emp',
    															id: 'combo',
    															store: new Ext.data.ArrayStore({
    																fields: ['num', 'text'],
    																data: [
    																	[1, 'Solo propietario'],
    																	[3, '2 - 3'],
    																	[8, '4 - 12'],
    																	[22, '13 - 30'],
    																	[40, '31 - 50'],
    																	[60, 'Más de 50']
    																]
    															}),
    															value: 'Solo',
    															displayField: 'text',
    															valueField: 'num',
    															mode: 'local',
    															editable: false,
    															forceSelection: true,
    															typeAhead: true,
    															triggerAction: 'all'
    														}
    Thanks

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    This is in the FAQ. It really is a FAQ! Probably the most F A Q on the forum!

Similar Threads

  1. displayfield doesnt work
    By jedihua in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 8 Oct 2010, 3:37 PM
  2. TwinCombo..it doesnt work..
    By ivone_tarigan in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 11 Aug 2010, 1:42 AM
  3. DatePickerPlus doesnt work
    By stevebla in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 9 Apr 2009, 7:03 AM
  4. Collapsible doesnt work right
    By archmisha in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 18 Oct 2008, 2:34 PM
  5. Need Help! my extjs doesnt work in IE
    By gmichael in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 19 May 2008, 8:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •