EasyUI Forum
September 13, 2025, 02:24:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Form submit issue  (Read 8395 times)
bakoma
Newbie
*
Posts: 13


View Profile Email
« on: August 26, 2014, 09:02:56 PM »

I suppose the form should submit $('#NI_Cat').combobox('getValue') when multiple=false; and should submit $('#NI_Cat').combobox('getValues') when multiple=true. This is true in 1.3.4 but not in 1.4. Please advise.

<input class="easyui-combobox" id="NI_Cat" name="NI_Cat" data-options="
                        data:[{ID:'Moving the University Forward',Name:'Moving the University Forward'},
                            {ID:'Operational Excellence',Name:'Operational Excellence'},
                            {ID:'Innovation / Creativity',Name:'Innovation / Creativity'},
                            {ID:'Fiscal Stewardship',Name:'Fiscal Stewardship'}],
                        valueField: 'ID', textField: 'Name',
                        multiple:true, <---------------------------------------
                        panelWidth: 350, panelHeight: 'auto',
                        prompt:'Select multiple items by clicking'
                    " style="width: 550px;" required="true">

$('#newNominee').submit();
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 27, 2014, 03:12:20 AM »

If you are using PHP, please try to use the code below instead.
Code:
<input class="easyui-combobox" id="NI_Cat" name="NI_Cat[]" data-options="multiple:true,...">
Logged
bakoma
Newbie
*
Posts: 13


View Profile Email
« Reply #2 on: August 27, 2014, 07:16:48 AM »

Thanks you stworthy. I use pure HTML+WS. I tried to add [] inside name and then to ID for each single case or both. Unfortunately, it won't submit.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!