<#assign errorMsg = ''> <#assign helpMsg = ''> <#if entry.helpMessage?exists&&entry.helpMessage!=''><#assign helpMsg>${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><#assign errorMsg><#if error.mandatoryError>#i18n{appointment.message.mandatory.entry}<#else>${error.errorMessage} <#assign default=getFieldValueByCode( entry, "text_config")> <#assign field_width=getFieldValueByCode( entry, "width")> <#assign field_max_size=getFieldValueByCode( entry, "max_size")> <#assign field_value><#if list_responses??><#list list_responses as response><#if response.entry.idEntry == entry.idEntry><#if response.toStringValueResponse??>${response.toStringValueResponse}<#else>${default} <@cField for='attribute${entry.idEntry}' label=entry.title! required=entry.mandatory > <@cInput name='attribute${entry.idEntry}' id='attribute${entry.idEntry}' maxlength=field_max_size?number!0 value=field_value! class='form-control ${entry.CSSClass!}' errorMsg=errorMsg helpMsg=helpMsg /> <#assign confirmField=getFieldByCode( entry, "confirm_field")> <#if confirmField.value?boolean > <#assign field=getFieldValueByCode( entry, "width")> <@cField for='attribute${entry.idEntry}_confirm_field' label=confirmField.title! required=entry.mandatory > <@cInput name='attribute${entry.idEntry}_confirm_field' id='attribute${entry.idEntry}_confirm_field' value='' maxlength=field_max_size?number!0 class='form-control ${entry.CSSClass!}' errorMsg=errorMsg helpMsg=helpMsg />