1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    monikaaurus@gmail.com. is on a distinguished road

      0  

    Default Unanswered: combo box submits display value instead of valueField

    Unanswered: combo box submits display value instead of valueField


    {
    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.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    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/#!...boBox-cfg-name
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1