match f.field.tmpl.add_raw_template("field", r#"{% if label %}<div class="mb-3">
<label for="{{ name }}" class="form-label">{{ label }}</label>{% endif %}
<div class="form-check">
- <input type="checkbox" class="form-check-input{% if help %} is-invalid{% endif %}{% if class %} {{ class }}{% endif %}" name="{{ name }}" id="{{ name }}" {% if value == "1" or value == "on" %}checked{% endif %}/>
+ <input type="checkbox" class="form-check-input{% if help %} is-invalid{% endif %}{% if class %} {{ class }}{% endif %}" name="{{ name }}" id="{{ name }}" {% if value == "TRUE" or value == "1" or value == "on" %}checked{% endif %}/>
{% if text %}<label for="{{ name }}" class="form-check-label">{{ text }}</label>{% endif %}
{% if help %}<div id="helpBox_{{ name }}_" class="invalid-feedback">{{ help }}</div>{% endif %}
</div>