This doesnβt make much sense since the flags are not checked on the server, as indicated in the comments, but if you need a value on the server, you can use a hidden field:
HTML:
<input type="checkbox" value="1" id="custom7" checked="checked" /> <input type="hidden" value="1" id="hdncustom7" name="custom7" /> <label for="custom7">Email me more info?</label>
JQuery
$('#custom7').on('change', function(){ $('#hdncustom7').val(this.checked ? 1 : 0); });
Using these methods, you will get custom7 with 0 or 1 on the server
source share