-
27 Jun 2011 2:10 AM #1
Combobox multiselect issue
Combobox multiselect issue
Hi,
I have used a combo box with multiselect: true option. It's working file. My problem is when i submitted the form it posted like this
user_roles: 'admin'
user_roles: 'member'
instead of user_roles: 'admin, member'
any body give me the solution for this.
Regards,
Riyaz
-
27 Jun 2011 2:14 AM #2
This is my combo box code i have used:
Regards,Code:xtype: 'combobox', multiSelect: true, editable: false, triggerAction: 'all', forceSelection: true, fieldLabel: 'User roles', name: 'user_roles', hiddenName: 'user_roles', displayField: 'user_roles_name', valueField: 'user_roles_id', queryMode: 'local', store: store, allowBlank: true, anchor: '100%'
Riyaz
-
11 Jul 2011 8:05 AM #3
I've posted a similar question in the Premium Forums. Hopefully it will get a response.
http://www.sencha.com/forum/showthre...boBox&p=624543
Did you ever find a solution on your own?
-
13 Jul 2011 2:39 AM #4
Try to set field name (hidden_name I guess) to "user_roles[]".
-
13 Jul 2011 6:53 AM #5
You are correct, just set the field name to : user_roles[].
Also, see my post about dealing with ComponentQuery when using field names like this.
http://www.sencha.com/forum/showthre...l=1#post624678
-
26 Jun 2012 2:47 AM #6




Reply With Quote