<#macro getTextAreaContent responseContent entry> <#assign field_width=getFieldByCode( entry, "width")> <#assign field_height=getFieldByCode( entry, "height")> <#assign field_max_size=getFieldByCode( entry, "max_size")> <#assign field_richtext=getFieldValueByCode( entry, "richtext") /> <#assign richtext = false /> <#if field_richtext == 'true'> <#assign richtext = true /> <#if list_responses??> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry && response.entry.error?? && response.entry.error.isDisplayableError> <#assign hasError = true>
<#if list_responses??> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry && response.toStringValueResponse??> <@getTextAreaContent responseContent=response.toStringValueResponse entry=entry/> <#else> <#assign default=getFieldValueByCode( entry, "text_config")> <@getTextAreaContent responseContent=default entry=entry /> <#if entry.helpMessage?exists&&entry.helpMessage!=''> ${entry.helpMessage} <#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{appointment.message.mandatory.entry}<#else>${error.errorMessage}
<#if richtext> <#include "/util/editor/editor.html" /> <@initEditor />