Skip to content
Snippets Groups Projects
Commit c059ca23 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

form_builder: checkbox backward compatibility

parent 10d9c13d
No related branches found
No related tags found
No related merge requests found
<div class="checkbox-container">
<input type="checkbox" name="data[{{ field.name }}]" id="{{ field.name }}"
{% if field.required|default(false) %}class="required"{% endif %}
data-checked-value="{{ field.checked_value }}"
data-checked-value="{{ field.checked_value|default('on') }}"
{% if elementValue or not elementValue and field.defaultvalue == "yes" %}checked="checked"{% endif %}/>
<label for="{{ field.name }}" class="to-html">{{ field.label|raw }}</label>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment