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 4746 Mar 27, 2007, 7:47 PM
Post Re: [Jonze] The dreaded Multiselect form on input_form.html
VishalT 4678 Mar 27, 2007, 7:58 PM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
brewt 4707 Mar 27, 2007, 8:11 PM
Thread Re: [brewt] The dreaded Multiselect form on input_form.html
Jonze 4656 Mar 28, 2007, 7:44 AM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
Andy 4681 Mar 28, 2007, 8:24 AM
Thread Re: [Andy] The dreaded Multiselect form on input_form.html
Jonze 4642 Mar 28, 2007, 8:37 AM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
Andy 4685 Mar 28, 2007, 8:44 AM
Post Re: [Andy] The dreaded Multiselect form on input_form.html
Jonze 4647 Mar 28, 2007, 9:02 AM
Post Re: [Andy] The dreaded Multiselect form on input_form.html
Jonze 4587 Mar 29, 2007, 11:42 AM
Thread Re: [Jonze] The dreaded Multiselect form on input_form.html
brewt 4628 Mar 28, 2007, 11:07 AM
Post Re: [brewt] The dreaded Multiselect form on input_form.html
Jonze 4633 Mar 28, 2007, 2:27 PM