#assign idName = buildEntryName( entry, entry_iteration_number )>
<#if entry.helpMessage?exists&&entry.helpMessage!=''>
<#assign helpKey=entry.helpMessage />
#if>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error??>
<#assign groupStyle = 'error' />
<#break>
#if>
#list>
<#assign inputClass = entry.CSSClass! />
#if>
<@formGroup labelFor='${idName}' labelKey='${entry.title}' helpKey=helpKey!'' groupStyle=groupStyle!'' mandatory=entry.mandatory htmlRequired=false >
<@select name='${idName}' id='${idName}' class=inputClass!''>
<#list entry.fields as field><#if field.code == 'answer_choice'>#if>#list>
@select>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error?? && response.entry.error.isDisplayableError>
<@alert color='danger'>
<#assign error = response.entry.error>
<#if error.mandatoryError>
#i18n{forms.message.mandatory.entry}
<#else>
${error.errorMessage}
#if>
@alert>
#if>
#list>
#if>
@formGroup>