Questions tagged [checkbox]

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

checkbox
Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Button click outside gridview is not prompting message for correct row in C# ASP.NET

I have a asp.net Gridview where there are multiple rows. Also outside gridview there are 2 buttons such as Approve and Reject respectively. And there are checkbox in every rows. So, what I want is, IF ...
0 votes
1 answer
43 views

Changing input type checkbox color into a green color in Angular 15

I did not find anywhere how to put a green color on a input type checkbox using Angular .I also use Tailwind but that is not relevant. I have this component : Component.HTML: <input type="...
0 votes
3 answers
3k views

Saving checkbox text value to an array

I've been trying to figure out a good solution all day and believe I'm getting close, but I can't figure out the final solution. What I'm trying to do is save the selected (only the selected) text ...
0 votes
2 answers
127 views

Detect if a checkbox is checked OpenCV

I am using OpenCV to process an image of a form which contains main checkboxes. I have used the pixel coordinates to crop around the checkbox so all I am left with is just the single checkbox. From ...
3 votes
1 answer
362 views

Add additional controls to standard Inno Setup pages?

How to add checkbox to the folder selection dialog created by the Inno Setup which is shown below in the image? This is not a custom dialog. It is created by the Inno Setup automatically.
718 votes
21 answers
1.7m views

Get checkbox value in jQuery

How can I get a checkbox's value in jQuery?
0 votes
2 answers
38 views

Tkinter issue regarding dynamically uncheck CheckBoxes

In Tkinter (Python) I try to dynamically uncheck a CheckBox when an another CheckBox is checked but the behavior is rather erratic. If the first box is checked and i check the second one: the second ...
-1 votes
1 answer
57 views

TreeView Select parent checkbox based on children - WPF MVVM

I am new to WPF. I found a few examples and put together a tree-view example in C# WPF Mvvm. I got the children's checkboxes checked or unchecked based on parent selection. I am not sure how to access ...
7 votes
1 answer
33k views

PyQt : Checkbox in QTableWidget

I use following code to put a checkbox in the 9th column of my QTableWidget chkBoxItem = QtGui.QTableWidgetItem() chkBoxItem.setFlags(QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) ...
9 votes
3 answers
6k views

Remove checkbox from QErrorMessage

writing in QT and QErrorMessage by default has checkbox saying: Show this message again Is there some way to remove this checkbox, so user won't be able to turn off this message?
1 vote
0 answers
32 views

Is there a way to check the toggle status of an object that has no control_type="CheckBox")

I'm trying to check the toggle status of a checkbox however it doesn't have a control type "CheckBox". | | | | | | | | | | Static - 'Pairings:' (L299, T1063, ...
0 votes
1 answer
47 views

Can't transfer checkbox value to php code

There is my old (15 years ago) webpage that is not working (though I remember it working back then), and I want to fix it. I would appreciate your help, it should be a really simple fix. There is a ...
0 votes
0 answers
33 views

How to make CKEditor5 Required

I would like to make a CKEditor5 textarea field required. In addition, I would like to set a trigger with Javascript, so that if a checkbox is checked, then the CKEditor5 field becomes required. ...
1 vote
2 answers
58 views

React Checkbox Component Unchecking Issue - All Checkboxes Cleared and Array Refilled on Slide Change

I'm encountering a perplexing issue in a React application where I have implemented a set of checkboxes. The initial state is such that all checkboxes are selected by default. However, when I uncheck ...
0 votes
0 answers
46 views

How to click on <li> elements and automatically check/uncheck form elements

Target My target is that when I click on <li> element (which is the element of each answer), the input checkbox inside select or deselect. I have this index.html page: <h3 aria-label="...
-1 votes
1 answer
31 views

Bootstrap Switch value passes as 'on' via ajax even it is unchecked

I have a simple form with two Bootstrap switches. <div class="row mt-5"> <div class="col-xl-3"> <h5>Minutes</h5> ...
1 vote
4 answers
11k views

Set default value in <s:checkbox> tag

I am using <s:checkbox> of Struts 2.3 the following is the line of code <s:checkbox theme="simple" name ="Mychkbox" value="R" onclick="Auto_Au('rej');&...
0 votes
1 answer
109 views

How to keep a checkbox checked?

How to keep selected checkbox checked after a dynamic search? After every search, the selected checkbox is unchecked. Here is my code: https://github.com/cdjordje/Test1.git I tried this but it doesn`t ...
0 votes
0 answers
15 views

How to send checkbox value from sidebar to googlesheet?

I've tried to send checkboxes values from sidebar to googlesheet using appscript. I've built the form, and when I clicked submit button, it sends only the first input i.e. the date, but the second ...
3 votes
1 answer
12k views

Ionic 4: Ion-checkbox checked not updating from ionchange

This is how I create a list with checkboxes to check/uncheck employees. I am binding the checked property of an employee to the checkbox. <ion-list> <ion-item *ngFor="let employee of ...
1 vote
1 answer
52 views

Save custom checkbox value from WooCommerce cart page

I have created a custom checkbox asking if the "order is a gift?" in a cart page, but unable to figure out how to save its value when a user clicks on "Proceed to checkout". The ...
1 vote
1 answer
45 views

Updating properties of object within a function, and then making object accessible outside of function

I'm somewhat of a novice when it comes to JavaScript. My goal is to create an object, and have checkboxes be able to update the properties of this object based on whether they are checked or not. I ...
0 votes
2 answers
75 views

How do I backend validate multiple checkboxes (Blazor)?

In my razor page is a form with 3 checkboxes. One must be selected in order for the submission to save. I can front end validate this all day but the project now requires backend validation. Seems ...
0 votes
1 answer
78 views

Apex checkbox to select and delete raws in interactive report

I'm just starting with Apex, I just need to link a delete button to the checkbox in an interactive report, in order to delete the selected raws. This is the report source (SQL query): select ...
-1 votes
3 answers
274 views

uncheck a checkbox which is in a for loop through a method

I am having a checkbox inside a for loop and having a array to store the row details. I only wants to select two checkboxes at a time. when a user clicked on the 3rd checkbox, checkbox should be ...
0 votes
2 answers
44 views

apply required attribute to checkbox

can we apply required attribute to checkbox in html multiple checkbox?without use of javascript or jquery I want to apply validation to html page without javascript.and warning message also be shown....
0 votes
4 answers
6k views

Checkbox and text field, if one is selected or has value require other(s)

I have two checkboxes in a group and one text input. If one (or both) of the checkboxes are selected I need to have the text input be required, as well as if the text input has text I need at least ...
0 votes
1 answer
16 views

ASP VB.Net Check Boxes in GridView not working getting error BC30311 value of type 'Control' cannot be conveted to CheckBox

I have added a check box to a working gridview as below. <asp:Panel ID="Reasons" runat="server"> <ContentTemplate> <div class="container&...
0 votes
3 answers
4k views

Custom checkbox : add cross icon on uncheck using css?

I've been searching a while here and there and can't seem to find a way to stylize the uncheck state of a checkbox. I can change the background to red, but I need to add a cross as well, is it ...
0 votes
0 answers
39 views

PowerApps update data source with checkbox

I am new to PowerApps and need to bind a checkbox to a column in the data source (excel spreadsheet) so that when checked, I can change the 0 into a 1 in the data source. OnSelect:Patch(Table1, ...
0 votes
1 answer
291 views

WPF/VB How to set a threestate checkbox (or nullable boolean) to Nothing(null)

The title explain all itself. For VB the keyword Nothing is the same as False. This code verify if checkbox is a three state checkbox, and set the default value, indeterminate if is a "three state", ...
0 votes
1 answer
72 views

How to select/deselect a DataGrid row according with state of Checkbox inside this row?

I've developing a WPF application which has one window with DataGrid. This DataGrid has binding to collection of "Person" objects. "Person" object has a property called "...
0 votes
0 answers
21 views

ASP.NET MVC: CheckBox Status is not returned correctly

First of all I have to say that I am a beginner in ASP.NET :) I have a simple page consisting of a checkbox and I want to return the result of this checkbox in MVC pattern in controller. Here is my ...
2 votes
2 answers
12k views

Checkbox for specific row in react-table?

import React, { Component } from 'react'; import { connect } from 'react-redux'; import getSchoolsList from '../Actions/Index'; import ReactTable from "react-table"; import ...
0 votes
2 answers
17k views

How to know if my radio button is checked? AngularJS

guys I did a code for knowing if my checkbox is checked and works fine: HTML: <div ng-app> <div ng-controller="UserController"> <table id="tblUsers" class="Table"> ...
275 votes
17 answers
1.3m views

Get the value of checked checkbox?

So I've got code that looks like this: <input class="messageCheckbox" type="checkbox" value="3" name="mailId[]"> <input class="messageCheckbox" type="checkbox" value="1" name="mailId[]"> ...
0 votes
3 answers
9k views

how to bind a value of datasource to a checkbox in datalist with Eval()

I have a datalist in my asp.net page. I bind a datasource to it in codebehind and I have a checkbox in this datalist. var n = from gi in DataContext.Context.GalleryImages join g in ...
0 votes
1 answer
81 views

Auto-calculate width for standard WinAPI controls

I am trying to write a general-purpose function to automatically calculate the width of several standard types of WinAPI controls based on the current caption/text content. This code works very well ...
1 vote
2 answers
787 views

Get PHP checkbox data from multiple tables

First I will tell what I want to achieve, and then I will explain how I was trying to do it. I have two tables, one stores type of vessels with a description and their own Id. Then I have another ...
55 votes
7 answers
155k views

Vertically aligning a checkbox

I have looked at the different questions regarding this issue, but couldn't find anything that works due to limitations in my markup. My markup looks like so (unfortunately as this is generated by ...
1 vote
1 answer
315 views

Flutter pdf package checkbox

I created a pdf document in my flutter project. but the checkbox won't show up. The row has space in front of the text, but it is blank, no checkbox or anything. This happened after I updated the pdf ...
0 votes
2 answers
61 views

How to have checkboxes checked by default using useFormik?

I have these components and I have 12 checkboxes in child component. I want to have them checked by default when the component loads. I can't do that. I can't use checked='true' as an attribute for my ...
-1 votes
2 answers
193 views

Read-Only ToggleButton or CheckBox in WPF

By default, WPF ToggleButton or CheckBox (which inherits ToggleButton) doesn't have some kind of ReadOnly property to prevent user from changing the value. One technic consists in setting ...
209 votes
10 answers
207k views

How to stop event bubbling on checkbox click

I have a checkbox that I want to perform some Ajax action on the click event, however the checkbox is also inside a container with its own click behaviour that I don't want to run when the checkbox is ...
0 votes
1 answer
39 views

Stop spacebar toggling on readonly checkbox

We have some HTML input checkboxes that are readonly as their checked state is controlled by another source, but the checkboxes can be tabbed into and toggled with pressing the space bar. This happens ...
0 votes
1 answer
668 views

React Native - How to select multiple items and display them?

I would like to display selected items, but the situation I have got is not showing images but only the backgroundColor. There is image uri in productData, so I would like to display the uri. Another ...
4 votes
5 answers
14k views

JavaScript check multiple checkbox

<input type="checkbox" name="name[]" value="A">A</input> <input type="checkbox" name="name[]" value="C">C</input> <input type="checkbox" name="name[]" value="...
0 votes
0 answers
112 views

Using python is there a way to dynamically show checkbox values with gradio?

I want to use a model on an image where I detect objects. Then I want to show the detected objects as checkbox values. The user can then select the objects he wants to run the next model on (by using ...
0 votes
1 answer
186 views

how to patch multiple selections checkbox gallery inside a gallery in powerapps

need your help please... I have i created a form in powerapps but without using form control. i used a gallery control instead. so i am using forall and patch function to write back all the answers to ...
0 votes
0 answers
28 views

old() value of checkbox, with the one from the database, along with if old remains empty laravel

I want to submit a checkbox with an update. I am using this code, and it's working fine. The problem is that the second parameter you give the old() function is used when the first value is null. So ...