u/FuegoFlamingo

help with checkbox form state

i made a form to input data into my database
i made a table and pulled the data from my database into the table.
this all works fine.
now i want to give the user a form to change the data, but my checkboxes are not displaying the checked state on items that are checked in my table, and have a boolean value in my database.

value in database is 1,
<p>DEBUG: the value is: {{ litem.reminder}}</p> value is True

why is my form not using the boolean value for the checkbox?

<label for="rem" class="form-label">reminder sent</label>
<input type="checkbox" class="form-check-input" id="rem" name="reminders" value="{{ litem.reminder}}">

reddit.com
u/FuegoFlamingo — 1 day ago