Getting Check_Box to have a default value of nil with Bootstrap Switch

1k views Asked by At

http://www.bootstrap-switch.org/examples.html

I'm using the Indeterminate switch (which keeps the checkbox between true and false). The issue is that the switch defaults to true.

Basically I want that field to submit as nil unless user specifically selects true or false.

1

There are 1 answers

4
AngularJR On

Jackson Is this all you need?
Same use for Toggles.

<label>
      <input type="checkbox" checked> Checked
</label>
<br><br>
<label>
      <input type="checkbox" unchecked> unChecked
</label>