Linked Questions
45 questions linked to/from Do checkbox inputs only post data if they're checked?
0
votes
3
answers
766
views
unable to post vales from checkbox in codeigniter [duplicate]
I am developing an application with codeigniter. My issue is iam not able to post value from second check box(checkbox in else condition).
View page
<div class="form-group">
&...
0
votes
0
answers
69
views
Form booleanfield does not appear in request.POST data [duplicate]
I tried printing out all (key,value) pairs in a request.POST to extract the form data. I notice that a BooleanField, if not checked (i.e. set to True), is not included in request.POST. This is true ...
23
votes
11
answers
19k
views
how can I override jquery's .serialize to include unchecked checkboxes
I have read quite a few different methods of having html checkboxes get posted to the server, but I am really looking to do it without modifying anything except for $.serialize. I ideally, I would ...
16
votes
4
answers
29k
views
Laravel 4, how to test if a Checkbox is checked?
I am trying to see if a checkbox is checked or not in my controller. I've read that this is the code to do it
if (Input::get('attending_lan', true))
But that returns true even if the checkbox is ...
7
votes
1
answer
2k
views
Why is :read-only CSS pseudo-class being applied on this checkbox?
I have the following SCSS code:
input[type="checkbox"] {
...
&:read-only, &[readonly] {
cursor: default;
filter: grayscale(1);
}
}
That is being applied ...
2
votes
2
answers
16k
views
How to know whether a checkbox was selected in python - django?
if I have the following html:
<form method ='GET' action='/search'>
<input type='checkbox' name='box1' id='box1'> Option 1
<input type='checkbox' name='box2' id='box2'> Option 2
<...
3
votes
3
answers
11k
views
Spring MVC - how to bind HTML checkbox value in a boolean variable
I am very new to spring mvc world. I am trying to send boolean value to from html form checkbox. When a user check the checkbox then it will send true, false otherwise.
<form class="...
3
votes
1
answer
7k
views
Play Framework submitting boolean values with checkbox?
Using Play 2.3.x I am trying to understand how checkboxes are handled in forms. This question seems like an outdated solution for an older version of Play. I understand that checkbox info will only be ...
3
votes
6
answers
10k
views
Multiple Checkboxes array with checked and unchecked values
So i have this line of code that will repeat different times in a form.
<input type="checkbox" name="checkbox[]" /> !checked
<input type="checkbox" name="checkbox[]" /> !unchecked
<...
1
vote
2
answers
8k
views
Sending POST with checkbox value changes with Django
I have a table and in the table a form with fields the user can change. Three of these fields use check boxes. I'm able to reflect what is currently in the database after following this post, but I ...
6
votes
2
answers
9k
views
How to save a boolean value from a checkbox using mongoose and express?
I can't figure an easy way to save a boolean value with express and mongoose. I have this schema:
var ClientSchema = new Schema({
name: {type: String, required: true, trim: true},
active: {type: ...
2
votes
1
answer
10k
views
Required Checkbox validation works in reverse for Html.CheckBoxFor [duplicate]
I have a checkbox validation before i submit the page. But it works in reverse. It's displaying error message when i check the box instead of opposite. I don't know where im doing wrong.
My ...
1
vote
7
answers
7k
views
Setting the value of a checkbox input if not checked
I am trying to change the value of a checkbox input based on whether the checkbox input is checked or not checked. Here is what I have:
HTML:
<input type="checkbox" id="chkPrint" name="Print" ...
5
votes
4
answers
1k
views
Dealing with a Large Number of Post Variables ASP.Net
I am running into an issue where I have multiple forms with a number of controls on them (20-40). The problem is that when I handle the postback, I need to put their values into variables and if they ...
0
votes
1
answer
4k
views
Sending checkbox value to flask
I have a form that looks like this:
<form id="settings" action="{{ url_for("load_settings") }}" method="post">
...
<label for="m_r">Interval 1</label>
<input type="text"...