Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default checkbox state: checked or unchecked? [closed]

I have an application settings page with a bunch of checkboxes. How should I choose the default checked state of the checkboxes?

I see the following options:

  1. Always set the default state to unchecked, but this leads to negative statements in the checkbox text (like "Don't automatically show due schedules"), which is sometimes hard to understand.

  2. Always phrase the checkbox text to have a positive meaning (like "Automatically show due schedules"), but this leads to inconsistent default checkbox states, both checked and unchecked.

  3. ... any other options?

Any guidelines, best-practices, advices for this problem?

like image 622
MicSim Avatar asked Jul 02 '09 12:07

MicSim


People also ask

What is default checkbox value?

If the value attribute was omitted, the default value for the checkbox is on , so the submitted data in that case would be subscribe=on .

Why is checkbox checked default?

The Input Checkbox defaultChecked property in HTML is used to return the default value of checked attribute. It has a boolean value which returns true if the checkbox is checked by default, otherwise returns false.

What is the default value of unchecked checkbox?

"On" is the default value for the value attribute of a checkbox.

Which option should be selected when a checkbox should appear selected by default?

You can also set if a checkbox should be checked by default by ticking the Start Checked box.


3 Answers

These are my "rules" for this:

  • Make all statements "positive" so 'Automatically show due schedules' rather than 'Dont automatically show due schedules'
  • Make the default configuration whatever it needs to be for the majority use case, even if it looks like you've scattered ticks and non-ticks across your configuration screen
  • Group related settings together, be it with "fieldset"/"group" elements or tabs
  • Use the best UI element for the job. For example: Tri-state check boxes aren't particularly intuitive and providing a drop-down or set of three radio buttons is more approchable for those less technically inclined

So - Option 2 from your list =)

like image 180
Rob Avatar answered Sep 21 '22 17:09

Rob


Definitely Number 2. Checkboxes should always have positive meaning. If this means some of your defaults are checks and some are not then that's not a problem in my opinion.

like image 21
Mark Pim Avatar answered Sep 17 '22 17:09

Mark Pim


I'd choose 2. I see no reason why all checkboxes should be unchecked by default. Choose the state that the user most likely wants (or that causes least damage) and a text that is easiest to understand.

like image 29
Erich Kitzmueller Avatar answered Sep 19 '22 17:09

Erich Kitzmueller