You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div class="input input--{{type}}">
{% if type=='radio' or type=='checkbox' %}
<label class="input__label input__label--{{type}}" for="{{ id ? id : name }}">{{ label | raw }}
<input class="input__item"
type="{{ type }}"
id="{{ id ? id : name }}"
name="{{ name }}"
value="{{ value }}"
{% if checked %}checked="checked"{%endif%}
{% if required %}
required="required"
{% endif %}
>
<span class="input__checkmark input__checkmark--{{ type }}"></span>
</label>
{% elseif type=='textarea' %}
<label class="input__label" for="{{ id ? id : name }}">{{ label }}</label>
<textarea class="input__item" type="{{ type }}" rows="4" id="{{ id ? id : name }}" name="{{ name }}" value="{{ value }}"></textarea>
{% else %}
<label class="input__label" for="{{ id ? id : name }}">{{ label }}</label>
<input class="input__item" type="{{ type }}" id="{{ id ? id : name }}" name="{{ name }}" value="{{ value }}">
{% endif %}
</div>
Text fields work great, but checkbox field don't - checked value are not saved. What am I doing wrong?
The text was updated successfully, but these errors were encountered:
In buddies/properties I added 'accept-terms' chceckbox. In my theme I use this code to update profile fields:
Here is input partial:
Text fields work great, but checkbox field don't - checked value are not saved. What am I doing wrong?
The text was updated successfully, but these errors were encountered: