Send a 0 value when a checkbox is unchecked

This commit is contained in:
flynsarmy 2014-09-26 09:20:01 +10:00
parent 0ca9c3847b
commit 7d8425538b
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
<!-- Checkbox -->
<div class="checkbox custom-checkbox">
<input
type="hidden"
name="<?= $field->getName() ?>"
value="0"
<?= $this->previewMode ? 'disabled="disabled"' : '' ?>>
<input
type="checkbox"
id="<?= $field->getId() ?>"