cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Select Form Field?

mgriffith
Champ in-the-making
Champ in-the-making
Hi all, I'm trying to use an HTML select that allows multiple values in the start form of a workflow.  It appears that when Activiti grabs the HTML form value, it doesn't get all the selected values. The HTML form element looks like this:

 
<select name="group_list" id="group_list"  multiple="multiple" size="10">
          <option value="user">User</option>
          <option value="manager">Manager</option>
          <option value="admin">Adminstrator</option>
          <option value="engineering">Engineering</option>
          <option value="accountancy">Accountancy</option>
</select>

However, in my JavaDelegate, the only available value passed as a process variable is the value of the option selected first in the select box. It seems that if this is handled by a servlet, it is performing request.getParameter(…) instead of  requests.getParameterValues(…)

Is this an Activiti bug, or am I going about this in the wrong way?

Thanks in advance,
MG
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
I'm not following 100%… Isn't a select meant to only select one?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Nope, there is a way to select multiple!

mgriffith
Champ in-the-making
Champ in-the-making
I ended up using Struts to perform the UI actions.