<input type="hidden" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=($item->value->value_int == 1) ? "1" : "0"?>" />
<input
  type="checkbox"
  class="form-control"
  name="wfitemplaceholder_<?=$item->name?>"
  id="wfitemplaceholder_<?=$item->name?>_<?=$$wftype->id?>"
  value="1"
  <?=($item->value->value_int == 1) ? "checked='checked'" : ""?>
  onchange="$('#wfitem_<?=$item->name?>_<?=$$wftype->id?>').val((this.checked) ? 1 : 0)"
>
