<#assign cpt=0> <@formGroup labelFor='form${entry.idEntry}' labelKey='${entry.title}' mandatory=entry.mandatory id='form${entry.idEntry}' helpKey='${entry.helpMessage}'> <#list entry.fields as field> <#if field.code == 'answer_choice'> <#assign checked = false /> <#if entry.fieldInLine><#assign orientation = 'inline' /><#else><#assign orientation = 'vertical' /> <#if !field.noDisplayTitle><#assign labelKey= field.title /> <#if field.comment?? && field.comment != ''><#assign title = field.comment /> <#if list_responses??> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry && response.field??><#if response.field.idField == field.idField><#assign checked = true /> <#else> <#if field.defaultValue><#assign checked = true /> <#if field.conditionalQuestions?exists&&field.conditionalQuestions?size!=0><#assign params='onclick="doCheckboxEffect(this.checked,${field.idField});"' /> <#assign helpMsg = '' /> <#if field.comment?? && field.comment != ''><#assign helpMsg=field.comment /> <@checkBox labelKey='${field.title!}' wrapperClass=entry.CSSClass! name='attribute${entry.idEntry}' id='attribute${entry.idEntry}_${field.idField}' value='${field.idField}' checked=checked orientation=orientation helpMsg=helpMsg params=params /> <#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>${error.errorMessage}<#else>#i18n{appointment.message.mandatory.entry} <@alert color='danger' title=errorMsg /> <#if str_list_entry_children?exists>${str_list_entry_children} <#if list_responses??> <#else> <#list entry.fields as field> <#if field.defaultValue && field.conditionalQuestions?exists && field.conditionalQuestions?size != 0>