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

Re: [Jonze] The dreaded Multiselect form on input_form.html

Quote Reply
Re: [Jonze] The dreaded Multiselect form on input_form.html In reply to
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:
Code:
<option value="Option1"<%loop features%><%if loop_value eq $Option1%> selected="selected"<%lastloop%><%endif%><%endloop%>>Option1</option>

Adrian

Last edited by:

brewt: Mar 28, 2007, 11:07 AM
Subject Author Views Date
Thread The dreaded Multiselect form on input_form.html Jonze 5880 Mar 27, 2007, 7:47 PM
Post Re: [Jonze] The dreaded Multiselect form on input_form.html
VishalT 5789 Mar 27, 2007, 7:58 PM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
brewt 5820 Mar 27, 2007, 8:11 PM
Thread Re: [brewt] The dreaded Multiselect form on input_form.html
Jonze 5773 Mar 28, 2007, 7:44 AM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
Andy 5797 Mar 28, 2007, 8:24 AM
Thread Re: [Andy] The dreaded Multiselect form on input_form.html
Jonze 5758 Mar 28, 2007, 8:37 AM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
Andy 5802 Mar 28, 2007, 8:44 AM
Post Re: [Andy] The dreaded Multiselect form on input_form.html
Jonze 5758 Mar 28, 2007, 9:02 AM
Post Re: [Andy] The dreaded Multiselect form on input_form.html
Jonze 5700 Mar 29, 2007, 11:42 AM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
brewt 5744 Mar 28, 2007, 11:07 AM
Post Re: [brewt] The dreaded Multiselect form on input_form.html
Jonze 5744 Mar 28, 2007, 2:27 PM