AnsweredAssumed Answered

checkbox value

Question asked by orha on Sep 22, 2009
Latest reply on Sep 22, 2009 by orha
Hi,
I'm building a categorizing script. I want to add checkboxes by which the user will be able to choose the relevant category for the file. I fetch the categories with javascript, and in the html template I try to render them to be checkboxes. My problem is how to set the checkbox value to be the category name.
The code I use:

  …
   <#list resultset as node>
   <tr> <td> <td> <input type="checkbox" name = "cat" value = $(node.name)> ${node.name} </option>
   </#list>
The problem is all the vaules are "$(node.name)", and not the specific category names. The categories themselves are shown correctly (so the page looks the way it's supposed to, with actual categories and not "$(node.name)"s).

How can I get the correct values?

Thank you!

Or

Outcomes