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 6004161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:13:26+00:00 2026-05-23T01:13:26+00:00

I have a a checkbox like so: <label for=TBMasterProduct.BloodTestEnabled>Blood Test Enabled?</label> <input type=checkbox name=TBMasterProduct.BloodTestEnabled

  • 0

I have a a checkbox like so:

<label for="TBMasterProduct.BloodTestEnabled">Blood Test Enabled?</label>
<input type="checkbox" name="TBMasterProduct.BloodTestEnabled" id="TBMasterProduct_BloodTestEnabled" class="cb" />

When I submit the form its sending the value ‘on’ against TBMasterProduct.BloodTestEnabled

Why would a checkbox post that value? Surely it should be true/false

  • 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-23T01:13:27+00:00Added an answer on May 23, 2026 at 1:13 am

    Why would a checkbox post that value?

    Browsers default to a value of on if you don’t set one explicitly with a value attribute.

    At the time this answer was written, this was non-standard error recovery. In HTML 4, the value attribute is mandatory for checkboxes. HTML 5 makes the attribute optional with a default of on.

    Surely it should be true/false

    No. Either the checkbox is checked (and thus successful) so the value gets submitted, or it isn’t and the checkbox doesn’t appear in the submitted data at all.

    An individual checkbox may have a boolean state, but multiple inputs can share a name to group them. The values then distinguish which items in the list were selected.

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

Sidebar

Related Questions

I have some checkboxes, something like this: <form name=submit-form name=submit-form> <label>property1</label> <input type=checkbox name=property1><br>
I have this structure in my dom: <label>London<input type=checkbox name=London></label><br> <div class=innerpost> <label>N1 2AB<input
I have some HTML that looks like this: <ul class=toggleList> <li><input type=checkbox name=toggleCbx1 id=toggleCbx1
I have an Element Like <div class=control> <label>&nbsp;</label> <input type=checkbox id=1><span class=controlText>Check Box</span> <div
I have and input like <label><input type="checkbox" name="controls[]" value="1347438434" />50504762b6102</label> and I need to
I have some labels like: <label> <input type=checkbox name=the_name id=the_name /> Label text </label>
I have a form like this: <form action='' onsubmit='void(0)' class=mainform> <label class=form3><input type=checkbox> One
I have a lot of listst with checkboxes like so: <ul> <li><label class=highlight><input type=checkbox
I have this html code: <tr> <td><label><input type=text name=id class=DEPENDS ON info BEING student
I have a list of checkboxes, looking like this: <table> <tr><td><input type=checkbox /> <label>Bla</label></td></tr>

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.