{# choose the form control template #}
{#{{dump(field.displayStatus)}}
{{dump(field.displayStatus!='hide'
and
(field.displayStatus!='hideIfEmpty'
or (
field.displayStatus=='hideIfEmpty'
and (
userData is defined
and userData[0][field.fieldname] is defined
and userData[0][field.fieldname] is not null
)
)
)
)}}#}
{% if field.displayStatus!='hide'
and
(field.displayStatus!='hideIfEmpty'
or (
field.displayStatus=='hideIfEmpty'
and (
userData is defined
and userData[0][field.fieldname] is defined
and userData[0][field.fieldname] is not null
)
)
)
%}
{% if field['eligibilityCheckHoldMessage'] != "" %}
<div id="CheckHold-{{ field['fieldname']}}" class="form-alert js-alert hide">
<div class="form-alert__text">{{ field.eligibilityCheckHoldMessage|raw}}</div>
<a href="#" class="form-alert__close js-alert-close" aria-label="close alert">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18.0024 5.98767L5.99731 17.9928" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M18.0066 18.0001L5.99146 5.98242" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</a>
</div>
{% endif %}
{% if(field.control == 'input') %}
{% include 'forms/inputs/_text.html.twig' %}
{% endif %}
{% if(field.control == 'textarea') %}
{% include 'forms/inputs/_textarea.html.twig' %}
{% endif %}
{% if(field.control == 'checkbox') %}
{% include 'forms/inputs/_checkbox.html.twig' %}
{% endif %}
{% if(field.control == 'select') %}
{% include 'forms/inputs/_select.html.twig' %}
{% endif %}
{% if(field.control == 'multi-select') %}
{% include 'forms/inputs/_multiselect.html.twig' %}
{% endif %}
{% if(field.control == 'radio') %}
{% include 'forms/inputs/_radio.html.twig' %}
{% endif %}
{%endif %}