{% set originalValue = originalValue is defined ? originalValue : value %} {% set toggleableChecked = field.toggleable and (originalValue is not null and originalValue is not empty) %} {% set isDisabledToggleable = field.toggleable and not toggleableChecked %} {% set value = (is_object(value) or value is null ? field.default : value) %} {% set errors = attribute(form.messages, field.name) %} {% block field %}