I have a form where users create an umbraco node with a bunch of data and one of these properties is a checkbox list with the days of the week. As per documentation this is how you're supposed to set the value of checkboxes:
Quickly answering this one myself, the problem was with culture not being set as well. Just add it to the end like so (only if it varies by culture I assume) and it works:
Checking boxes in a checkboxlist programmatically
I have a form where users create an umbraco node with a bunch of data and one of these properties is a checkbox list with the days of the week. As per documentation this is how you're supposed to set the value of checkboxes:
So an array of strings, simple enough. When I try this I get an error saying:
'Variation "
So I figured maybe it will instead accept the indexes of the items in the checkbox list, so I tried passing option 0 and 1, something like this:
But this gives me the same error. Am I misinterpreting the documentation?
Quickly answering this one myself, the problem was with culture not being set as well. Just add it to the end like so (only if it varies by culture I assume) and it works:
is working on a reply...