<#assign idName = buildEntryName( entry, entry_iteration_number )>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error??>
class="is-invalid"
<#break>
#if>
#list>
#if>
<#list entry.fields as field>
<#if field.code == 'answer_choice'>
<#assign notSelected=true />
<#if list_responses?has_content>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.field??>
<#if response.field.idField == field.idField>
<#assign notSelected=false />
#if>
#if>
#list>
#if>
<#if notSelected>
- ${field.title}
#if>
#if>
#list>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error??>
class="is-invalid"
<#break>
#if>
#list>
#if>
<#if list_responses?has_content>
<#list list_responses?sort_by('sortOrder') as response>
<#list entry.fields as field>
<#if response.field.idField == field.idField>
- ${field.title}
#if>
#list>
#list>
#if>
<#if entry.helpMessage?exists&&entry.helpMessage!=''>
${entry.helpMessage}
#if>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error?? && response.entry.error.isDisplayableError>
<#assign error = response.entry.error>
<#if error.mandatoryError>
#i18n{forms.message.mandatory.entry}
<#else>
${error.errorMessage}
#if>
#if>
#list>
#if>
#if>