Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Jonze] The dreaded Multiselect form on input_form.html: Edit Log

Here is the list of edits for this post
Re: [Jonze] The dreaded Multiselect form on input_form.html
If a value allows multiple values to be selected, then when it gets submitted, it turns into an array in the template. That means you have to loop through the array and check each value:
<option value="Option1"<%loop features%><%if loop_value eq $Option1%> selected="selected"<%lastloop%><%endif%><%endloop%>>Option1</option>


Last edited by:

brewt: Mar 28, 2007, 11:07 AM

Edit Log: