<#assign idName = buildEntryName( entry, entry_iteration_number )> <#assign field=getFieldByCode( entry, "text_config")> <#assign field_min=getFieldByCode( entry, "min")> <#assign field_max=getFieldByCode( entry, "max")> <#assign suffix = '' > <#assign field_autocomplete = getFieldByCode(entry, "autocomplete")!{}> <#if entry.fields?? && entry.fields?has_content> <#assign suffix = getFieldValueByCode( entry, 'suffix') > <#if field_autocomplete?? && field_autocomplete.value??> <#assign autocomplete = "autocomplete=${field_autocomplete.value}" /> <#else> <#assign autocomplete = "" /> <#if list_responses?has_content> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry> <#if response.toStringValueResponse??> <#assign inputValue = response.toStringValueResponse /> <#if response.entry.error??> <#assign groupStyle = 'error' /> <#else> <#if field.value?exists> <#assign inputValue = field.value /> <#else> <#assign inputValue = '' /> <#assign min=0 /> <#assign max=0 /> <#if field_min.value??> <#assign min=field_min.value?number /> <#if field_max.value??> <#assign max=field_max.value?number /> <@formGroup labelFor='${idName}' labelKey='${entry.title}' helpKey=entry.helpMessage!'' groupStyle=groupStyle!'' mandatory=entry.mandatory htmlRequired=false > <@inputGroup> <#assign placeholder = getFieldValueByCode(entry, "placeholder") > <@input type='number' name='${idName}' id='${idName}' class='${entry.CSSClass!}' value=inputValue min=min max=max params=autocomplete placeHolder=placeholder/> <#if suffix!=''> <@inputGroupItem type='text'>${suffix} <#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> <@alert color='danger'><#if error.mandatoryError>#i18n{forms.message.mandatory.entry}<#else>${error.errorMessage}