#macro getTextAreaContent responseContent has_error entry field>
<#if has_error>
<#else>
#if>
#macro>
<#list entry.fields as field>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.toStringValueResponse??>
<#if response.entry.formError??>
<@getTextAreaContent responseContent=response.toStringValueResponse has_error=true entry=entry field=field/>
<#else>
<@getTextAreaContent responseContent=response.toStringValueResponse has_error=false entry=entry field=field/>
#if>
#if>
#list>
<#else>
<#if field.value?exists>
<@getTextAreaContent responseContent=field.value has_error=false entry=entry field=field/>
<#else>
<@getTextAreaContent responseContent="" has_error=false entry=entry field=field/>
#if>
#if>
#list>
<#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.formError??>
<#assign formError = response.entry.formError>
<#if formError.mandatoryError>
<#else>
#if>
#if>
#list>
#if>