Questions tagged [checkbox]

A checkbox is a graphical user interface element that permits the user to make a binary selection.

A checkbox is a graphical user interface element that permits the user to make a binary selection. Checkboxes are often shown on the screen as a square box that can contain white space (for false) or a tick mark or X (for true). A caption describing the meaning of the checkbox is normally shown adjacent to the checkbox. Inverting the state of a checkbox is done by clicking the mouse on the box, or the caption, or by using a keyboard shortcut, such as the space bar.

Source: http://en.wikipedia.org/wiki/Checkbox


Some applications optionally allow a third state of Null, usually indicated by a grayed-out appearance. A similar provision is often made for a new record which has no instantiated values.

Here is an example of HTML code to present a checkbox in a user-entry form:

<input type="checkbox" name="example" value="foo">foo
  • The checked attribute is a boolean attribute.
  • When present, it specifies that an element should be pre-selected (checked) when the page loads.
  • The checked attribute can be used with <input type="checkbox"> and <input type="radio">.
  • The checked attribute can also be set after the page load, with a JavaScript.
29830 questions
4
votes
4 answers

Wicket : how to set checked value in CheckBoxMultipleChoice

I am using wicket's CheckBoxMultipleChoice to let the user set a list of options. so far it works fine. but then i want to add a "check all" check box that checks all the options in the CheckBoxMultipleChoice and I am having problems with that. here…
amango
  • 65
  • 2
  • 6
4
votes
3 answers

Is there a way to reset the rest of the checkbox item when clicking 'None of the above option' in Angular?

I've been struggling with reactive forms with checkboxes . If none of the items is selected , submit button should be disabled . This is done There's an option called "None of the above" . Selecting this should unselect all the selected items(if…
4
votes
1 answer

Autoresizing TCheckBox (like TLabel)

I want to create a checkbox that can automatically resize its width, exactly like TLabel. UNIT cvCheckBox; { It incercepts CMTextChanged where it recomputes the new Width} INTERFACE USES Winapi.Windows, Winapi.Messages, System.Classes,…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
1 answer

How to add checkbox to first/welcome page in Inno Setup

How do I add the check box to a particular page in Inno Setup? I want the check box to be shown only in the first page or ReadyToInstall page? I wrote code to add check box to WizardForm, but I see the check box is in every other page. I see we have…
jamilia
  • 359
  • 4
  • 14
4
votes
2 answers

jQuery hide/show checkbox message

I have a checkbox that when upon checking a div pops up with a message then if the checkbox is unchecked there is another div that pops up with another message. I got this to work decently but when you click the checkbox a couple of times in a row…
MorningStar
  • 176
  • 1
  • 4
  • 16
4
votes
1 answer

Can I limit an onEdit function to a checkbox cell in Google Sheets?

I'm creating a spreadsheet in Google Sheets to collect and analyse individual inputs. The idea was to have users input data on the first sheet, hit a Submit button, and have it collected in another sheet, while clearing the first sheet inputs. I…
4
votes
1 answer

vue checkbox v-model binding not working properly in the current version

The following code is supposed to list a series of tasks according to their status of completion. It works just fine when I use a 2.5.xx Vue cdn link. However with the current version's cdn (>= 2.6.0), whenever I check/uncheck a task from either…
Flayshon
  • 363
  • 1
  • 5
  • 12
4
votes
5 answers

WPF: How to prevent CheckBox.Checked event from being fired for ComboBox as a ToggleButton?

I have a lots of controls in a Window including checkboxes and comboboxes. I want to track CheckBox.IsChecked event, so I defined an event handler in Windows level as The problem…
newman
  • 6,841
  • 21
  • 79
  • 126
4
votes
2 answers

Default Django checkbox to be true and hidden

I am working with Satchmo and am wondering for the newsletter subscription, how to make it so when people sign up, they are automatically subscribed to the newsletter. I found this line of code in forms.py: newsletter =…
Wesley
  • 65
  • 1
  • 3
4
votes
2 answers

QTabWidget with CheckBox in title

I was wondering how to create (using PyQt4) a derived QTabWidget with a check box next to each tab title? Like this:
Jib
  • 391
  • 1
  • 3
  • 9
4
votes
4 answers

How to clear whole form on clear button click in flutter

How to clean the whole form when the user clicks the clear button. i've tried but when I am pressing the clear button it will not clear the Terms and condition checkbox and Dropdown. So I want that when the user presses the clear button it will…
Rutvik Gumasana
  • 1,458
  • 11
  • 42
  • 66
4
votes
2 answers

prevent checkbox label from wrapping to opposite side of page

As you can see in the image below then when the browser window is resized the checkbox labels can wrap to the opposite side of their ascociated checkboxes. In the image above the label for checkbox 12 has wrapped and is at the opposite side of the…
Web_Designer
  • 72,308
  • 93
  • 206
  • 262
4
votes
1 answer

Save multiple checkbox values to sql database

I have a html form, and i have also checkboxes in it. Values of checkboxes is coming from SQL-database via Web Api. $(document).ready(function () { var $MaterialName = $('#materiallist'); function addMaterials(material) { …
HeiJoe
  • 107
  • 8
4
votes
3 answers

PHP : checkboxes and name issue

I'm writing, for the first time in PHP, a script to process a POSTed form that contains checkboxes. As you know, checkboxes are grouped by using the same name attribute, and when multiple values occur, $_POST["some_name"] should be storing those in…
4
votes
1 answer

Getting Checked rows from gridview in asp.net

I have a GridView in ASP.net where I have a CheckBox column. The user can toggle the CheckBox. Now, what I want is that when the user clicks on a button, all the records from the GridView where the CheckBox is checked should be displayed. And on…
Abbas
  • 4,948
  • 31
  • 95
  • 161