The other blog manager

Dealing with boolean options

Now, I'm dealing with the control panel.  You see, some option values are boolean (that is TRUE or FALSE, YES or NOT).  Currently this is managed by a text input field where your should write 1 or 0 depending you want activate or deactivate that option.  Really ugly and confusing.  What happens if you put 2, or 134?  Actually, an error message appears.

I'm replacing all that fields by selection lists with Yes or No values, which are less confusing and also avoids configuration errors.  I would use checkboxes but that would need to change current validation code.

Write your comment

Allowed HTML: a, cite, code, dd, dl, dt, em, li, ol, p, small, strong, ul

Note: anonymous comments will be moderated.