Checkbox not readable by wf:q/1
-
Jesse Gumm
I've posted a fix for this, as well as added support for the "value" attribute on the checkbox field.
http://github.com/choptastic/nitrogen/commit/dce295e82d917310b2fde5...
Assuming the following checkboxes
[ #checkbox{id=fruit,value="apple",text="Apple"}, #checkbox{id=fruit,value="orange",text="Orange",checked=true}, #checkbox{id=fruit,value="banana",text="Banana",checked=true} ].
wf:qs(fruit) would yield ["orange","banana"]
This, to me, seems the appropriate way to handle checkboxes to stay consistent with HTML form submission.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.