Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6631227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:30:58+00:00 2026-05-25T22:30:58+00:00

If checkbox is not checked, clicking on form submit button does not submit any

  • 0

If checkbox is not checked, clicking on form submit button does not submit any data.

Some checkboxes may be not present in form depending on form fields selected by user. So submit controller has no possibility to determine if the unchecked checkbox was present in form or not.

If database contains true for this column, this property is not updated to false.
Checkbox name is same as database boolean column name.

How to to force form to submit checkboxes which are in unchecked state or any other idea to
set value in database to false if checkbox is not checked but not to change value in database if checkbox is not present in form ?

jquery, jqueryui, asp.net 2 mvc are used

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:30:58+00:00Added an answer on May 25, 2026 at 10:30 pm

    This is a common issue with checkboxes in HTML forms and isn’t unique to ASP.NET.

    The answer is to have a hidden field that accompanies each checkbox. When the checkbox is modified, use a client-side event to update the hidden field.

    The hidden field will always be submitted.

    However, since you’re using ASP.NET MVC, if you use the HTML.CheckBoxFor helper, it will handle this for you automatically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(#myform).validate({ submitHandler: function (form) { var cboxes = ($('input:checkbox:checked').filter(:checked).length); var nboxes = ($(:checkbox:not(:checked)).length); var
Why can't the data in mysql not updated when I use checkbox, I already
I have a small NSTableView with a checkbox. Whenever the checkbox is not checked,
Here's the code: this.Form.find(input[type=checkbox]).click(function(event) { if ($(this).is(:checked)) { console.log(checked); } else { console.log(unchecked); }
Here I construct an array: var optionTexts = []; $('#stripeMeSubSubCat tr').each(function(){ if ($(this).find('input:checkbox.subsubcat_chkclass:not(:checked)').length ==
Why is the checkbox not checked with this code? <td><%=Html.CheckBox(ItemIsActive, item.ItemIsActive)%></td> Item.ItemIsActive is of
We can pass :checked or :hidden to :not filter as follows: :checkbox:not(:checked) Why cannot
I am having trouble with the checked binding: clicking on the checkbox doesn't update
I'm trying to get all of my checkboxes to be checked when clicking a
I need to check if a checkbox is checked or not in order to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.