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
1 answer

SetState() called in constructor

I've build a Custemized List. Now I include a Checkbox and if I would checked or unchecked , the following error was thrown: 'setState() called in constructor' class Lists extends StatefulWidget{ @override _List createState() =>…
Julia
  • 55
  • 1
  • 1
  • 6
4
votes
4 answers

jquery validator checkbox "element is undefined"

I'm trying to use the jQuery Validation plugin to make a multistep form with tabs, but I keep getting an "element is undefined" error when I attempt to loop through all the inputs. Any suggestions? I don't understand what's wrong. I've tried placing…
Jordan
  • 9,014
  • 8
  • 37
  • 47
4
votes
1 answer

How to filter an object array using checkbox with angular?

I'm currently stuck on a problem with angular. I try to filter an object array using checkbox but it doesn't work. I would try to filter my array by status. I already try to use "ng-true-value" when i check the checkbox but it seems it doesn't work…
Beda
  • 107
  • 1
  • 11
4
votes
3 answers

React Material UI Checkbox: How to check/uncheck other boxes in group by checking a different box?

I have 3 checkboxes set up, (Not Started, In Progress, Completed), that I would like allow only one to be checked at a certain time. So if Not Started is automatically checked to begin with, how would I cause it uncheck 'Not Started' if I check…
johntc121
  • 199
  • 1
  • 2
  • 11
4
votes
2 answers

Android - How to get an icon of an app?

I am trying to display a list of task in this way - Icon | ApplicationName | CheckBox As i found that no listview adapter supports this so i decided to develop a custom adapter but i am unable to fetch the icon of an application. So far i tried…
Varundroid
  • 9,135
  • 14
  • 63
  • 93
4
votes
2 answers

How to check if one or more checkbox in form is selected (only when div is displayed)

I need help to validate a form on submit. It should check that one of more checkboxes are selected or else display error message. I have currently got it working but the problem is the checkbox option is displayed after selecting a radio button on…
Bonnie Thompson
  • 77
  • 1
  • 10
4
votes
1 answer

Android - ListView: Checkboxes not staying checked

I have a listview, with around 200 items, I have implemented a custom ArrayAdapter for the checkboxes. I use a SparseBooleanArray to store the value of the boxes. All of this works fine but I cannot seem to graphically update the checking of the…
Christopher Gwilliams
  • 1,321
  • 15
  • 29
4
votes
2 answers

Array of checkboxes in java

I would like to have 6 checkboxes, and do some stuff after a botton is pressed do you have an example? Also can an array of checkboxes be used? I want to avoid: Checkbox cb1 = new Checkbox("A"); Checkbox cb2 = new Checkbox("B"); I am doing…
edgarmtze
  • 24,683
  • 80
  • 235
  • 386
4
votes
4 answers

how to add checkbox in listview using xamarin forms

i want to create a checkbox in listview using xaml, after selecting the multiple checkbox click button to get all selected value.My code is :
Anu Priya
  • 87
  • 1
  • 2
  • 10
4
votes
2 answers

Style a Bootstrap 4 Checkbox without label

I'm trying to style a Bootstrap 4 checkbox without a label:
My trial and error styles: .form-check { …
Ricky
  • 2,912
  • 8
  • 47
  • 74
4
votes
2 answers

Clear CheckBox list in function

I am trying to implement a "Clear All Checkboxes" upon a checkbox toggle.
gymcode
  • 4,431
  • 15
  • 72
  • 128
4
votes
3 answers

I want to make an array of checkbox in scrollviewer control using WPF

I have a list of strings and I want to convert it to checkboxes control in scrollviewer control. How can I do this? Any ideas? The list consists of courses and I want to make it as checkboxes so student can choose some of them.
kartal
  • 17,436
  • 34
  • 100
  • 145
4
votes
2 answers

Google Sheets: how to trigger random function?

I have a sheet on Google and keep looking for a solution on how to make randomizing script work only when it's needed, not every time I open the sheet or refresh it. Here's the example. Let's take the sheet looks like this: B5 cell has the…
4
votes
3 answers

How to make CheckBox focus border appear when calling CheckBox.Focus()?

When the user tabs into a CheckBox to give it focus, a dotted border appears around the CheckBox to indicate that it has focus. When the CheckBox gets focused by code calling myCheckBox.Focus(), no such indicator appears (even though pressing the…
Greg Sansom
  • 20,442
  • 6
  • 58
  • 76
4
votes
2 answers

Custom checkbox in bootstrap 4.1.x

I require a checkbox like this one or similar There are lots of answers about styling checkboxes but none worked in bootstrap 4.1.x, either I am using them wrong or they are not working in this bootstrap version.
WasiF
  • 26,101
  • 16
  • 120
  • 128
1 2 3
99
100