Default value of a checkbox is returning "1", even if it has been defined to "true".
If you create a custom page like this one :
and go to the next page without unchecking/checking the checkbox, it will display: Checkbox value: 1 Whereas if you uncheck and then check again the checkbox, you will obtain: Checkbox value: true
To avoid this problem, you have to test whether the boolean equals "1" or "true":
But I think checkboxes should always return the same type of value.
asked 14 Jun '13, 11:34
I don't really see a question here, but if you had asked how to handle the different values ("1", "yes", "true"), then I'd upvoted the answer you have given yourself already: testing the value using the
answered 14 Jun '13, 12:30
Thank you for the hint.
It helps solving the problem ; but it does not cure the symptom.
answered 14 Jun '13, 12:37