Derek Hohls wrote:

I have a (ordinary) form with multi-select field. The form's data is then intercepted by a flow routine, and must then be processed by a JXTemplate page.

In the form:

<select multiple="multiple" size="5" name="Year_pd">


Multiple is a boolean value

<select multiple size="5" name="Year_pd">

In the flow page:

var Year_pd = cocoon.request.getParameter("Year_pd");


Are you sure that getParameter return an array or a list of value, try print(Year_pd); to see the type.

Why don't you use a cocoon cform?

With cform is quite simple,

in definition file

   <fd:multivaluefield id="year_pd">
     <fd:label>Year</fd:label>
     <fd:datatype base="integer"/>
     <fd:validation>
       <fd:value-count min="1"/>
     </fd:validation>
     <fd:selection-list>
       <fd:item/>
     </fd:selection-list>
   </fd:multivaluefield>

in flowscript

       var Year_pd = form.lookupWidget("year_pd").value;

this return an array of value

I hope this can help you

Bye Gioni

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to