{% if not field.validate.ignore %} {% if not blueprints or (blueprints.schema.type(field.type)['input@'] ?? true) is same as(true) %} {% set default = field.default %} {% set toggleable = field.toggleable ?? false %} {% if toggleable %} {% set originalValue = originalValue is defined ? originalValue : value %} {% set toggleableChecked = originalValue is not null %} {% endif %} {% set has_value = value is not null %} {% if not has_value %} {% set value = default %} {% endif %} {% if (field.yaml or field.validate.type == 'yaml') and value is iterable %} {% set value = value|toYaml %} {% endif %} {% else %} {% set toggleable = false %} {% endif %} {% set vertical = field.style == 'vertical' %} {% set field_name = (scope ~ field.name)|fieldName %} {% set show_label = field.label is not same as(false) and field.display_label is not same as(false) %} {# DEPRECATED: Needed by old form fields; remove when backwards compatibility breaks are allowed #} {% set isDisabledToggleable = toggleable and not toggleableChecked %} {% block field %}