{# Applicant block, shown only when the applicant does not travel along. #} {% set isSubmitted = isSubmitted|default(false) %} {% set applicantErrors = applicantErrors|default([]) %} {% set isComplete = applicant is not null and applicant.firstName is not empty and applicant.lastName is not empty and applicant.email is not empty and applicant.mobile is not empty and applicant.dateOfBirth is not null and applicant.address is not null %} {% set showAsError = applicantErrors is not empty or (not isComplete and isSubmitted) %}