Umbraco 5 List Picker + How to display ticked boxes as <li> list
Hi Community,
I'm having a bit of a struggle with working out how to display the options ticked in a custom List Picker. Basically I want to be able to have a <li> for each selected option from the List Picker.
I am not completely new to Umbraco or Razor, however, I am still finding my feet. I have searched about the forums and found another couple of topics on it, however, those solutions don't seem to be what I'm looking for.
For a List Picker containing [Option 1, Option 2, Option 3, Option 4, Option 5] I want to be able to display the selected options as:
<li>Option 1> <li>Option 3>
etc.
I am comfortable with the concept of for each loops and if statements, it's just the actual methods I need to call or reference that I'm stuck on.
Umbraco 5 List Picker + How to display ticked boxes as <li> list
Hi Community,
I'm having a bit of a struggle with working out how to display the options ticked in a custom List Picker. Basically I want to be able to have a <li> for each selected option from the List Picker.
I am not completely new to Umbraco or Razor, however, I am still finding my feet. I have searched about the forums and found another couple of topics on it, however, those solutions don't seem to be what I'm looking for.
For a List Picker containing [Option 1, Option 2, Option 3, Option 4, Option 5] I want to be able to display the selected options as:
<li>Option 1>
<li>Option 3>
etc.
I am comfortable with the concept of for each loops and if statements, it's just the actual methods I need to call or reference that I'm stuck on.
Any help would be great.
Thanks.
Hi I think you might get some idea of how to go abvout this by looking at my solution in
http://our.umbraco.org/forum/core/umbraco-5-general-discussion/28976-U5-How-to-get-values-from-List-Picker-(Checkbox-list)?p=1
Cheers
is working on a reply...