<#assign errorMsg = ''> <#assign helpMsg = ''> <#if entry.helpMessage?? && 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>${error.errorMessage}<#else>#i18n{appointment.message.mandatory.entry} <#assign answerChoiceCount = 0> <#list entry.fields as field><#if field.code == 'answer_choice'><#assign answerChoiceCount = answerChoiceCount + 1> <@cField label='${entry.title}' required=entry.mandatory> <#assign answerChoiceIdx = 0> <#list entry.fields as field> <#if field.code == 'answer_choice'> <#assign answerChoiceIdx = answerChoiceIdx + 1> <#assign isChecked = false> <#if list_responses??><#list list_responses as response><#if response.entry.idEntry == entry.idEntry && response.field??><#if response.field.idField == field.idField><#assign isChecked = true><#else><#if field.defaultValue><#assign isChecked = true> <#assign cbParams = ''> <#if field.conditionalQuestions?? && field.conditionalQuestions?size != 0><#assign cbParams = cbParams + 'onclick="doCheckboxEffect(this.checked,${field.idField});"'> <#if field.comment?? && field.comment != ''><#assign cbParams = cbParams + ' title="${field.comment}"'> <#assign cbLabel><#if !field.noDisplayTitle>${field.title}<#else> <@cCheckbox name='attribute${entry.idEntry}' id='attribute${entry.idEntry}_${field.idField}' value='${field.idField}' checked=isChecked label=cbLabel params=cbParams inline=entry.fieldInLine errorMsg=errorMsg helpMsg=helpMsg /> <#if str_list_entry_children??>${str_list_entry_children} <#if list_responses??> <#else> <#list entry.fields as field> <#if field.defaultValue && field.conditionalQuestions?? && field.conditionalQuestions?size != 0>