question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't post a checkbox value directly from within a form element.

See original GitHub issue
  • What will it allow you to do that you can’t do today?

Post a checkbox value directly from within a form element.

  • How will it make current work-arounds straightforward?

By including a hidden checkbox field into the DOM

<input type="checkbox" name="my-test1" id="my-test1" tabindex="-1" value="true">

which will keep track of the current checkbox value.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
dionysiosarvanitiscommented, Jun 28, 2017

Yes 😦 think it is a very well needed feature. Do you intent to support direct population?

3reactions
dionysiosarvanitiscommented, Jun 28, 2017

Using it in a small form built with Laravel’s Blade. Let’s say a simple login form with a remember me option. It is easier to simply populate the form and then submit with a regular post avoiding ajax calls.

But then we’ll also need a way to repopulate the checkbox without using v-model. This is possible with text fields but I can’t find a way for checkboxes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checkbox value not submitting - Stack Overflow
1 Answer 1 ... Your HTML code is invalid – you can not have a form element as child of table . ......
Read more >
<input type="checkbox"> - HTML: HyperText Markup Language
Note: If a checkbox is unchecked when its form is submitted, there is no value submitted to the server to represent its unchecked...
Read more >
POSTing an Indeterminate Checkbox Value - CSS-Tricks
There is a such thing as an indeterminate checkbox value. It's a checkbox ( <input type="checkbox"> ) that isn't checked.
Read more >
Checkboxes - The complete HTML5 tutorial
However, as with all input elements, you need to define a name for it to be usable - without a name, the element...
Read more >
Can't change the value of a checkbox to other than the label
Aboout the pipe “|” but it is just not working in my code. ... <input type="checkbox" name="qualifications[]" value="国家資格キャリアコンサルタント">.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found