This is a very wild guess,
but try this:
<label><input type="checkbox" name="infomaterial[0]" value=" Test1" />
Test1</label>
<label><input type="checkbox" name="infomaterial[1]" value=" Test2" />
Test2</label>
<label><input type="checkbox" name="infomaterial[2]" value=" Test3" />
Test3</label>
Or this:
<label><input type="checkbox" name="infomaterial[]" value=" Test1" />
Test1</label>
<label><input type="checkbox" name="infomaterial[]" value=" Test2" />
Test2</label>
<label><input type="checkbox" name="infomaterial[]" value=" Test3" />
Test3</label>
Ries
On Feb 2, 2011, at 10:34 AM, Marvin Kerkhoff wrote:
Hi there,
i have following problem. I’ve used checkboxes with the same name,
so it is an mutiple checkbox.
<label><input type="checkbox" name="infomaterial" value=" Test1" />
Test1</label>
<label><input type="checkbox" name="infomaterial" value=" Test2" />
Test2</label>
<label><input type="checkbox" name="infomaterial" value=" Test3" />
Test3</label>
Now. How can i used this in Freemarker after the form is send. I
have tried:
[#list ctx.infomaterial as x]
${x}
[/#list]
But ctx.infomaterial is only a string with the first clicked
checkbox value.
Thanks for your help.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------