{% import "_includes/forms" as forms %} {{ forms.textField({ label: "Default Value"|t('freeform'), instructions: "The default value for the field."|t('freeform'), id: "value", name: "types[number][value]", value: field.getMetaProperty('value'), errors: field.getErrors("value"), required: false }) }} {{ forms.textField({ label: "Placeholder"|t('freeform'), instructions: "The default text that will be shown if the field doesn’t have a value."|t('freeform'), id: "placeholder", name: "types[number][placeholder]", value: field.getMetaProperty("placeholder"), errors: field.getErrors("placeholder"), required: false }) }}
{{ forms.lightswitchField({ label: "Allow negative numbers?"|t('freeform'), name: "types[number][allowNegative]", on: field.getMetaProperty('allowNegative', true), reverseToggle: 'placeholder-wrapper', }) }} {{ forms.textField({ label: "Min Value"|t('freeform'), instructions: "(Optional) The minimum allowed numeric value this field is allowed to have."|t('freeform'), name: "types[number][minValue]", value: field.getMetaProperty('minValue'), size: 3, }) }} {{ forms.textField({ label: "Max Value"|t('freeform'), instructions: "(Optional) The maximum allowed numeric value this field is allowed to have."|t('freeform'), name: "types[number][maxValue]", value: field.getMetaProperty('maxValue'), size: 3, }) }} {{ forms.textField({ label: "Min Length"|t('freeform'), instructions: "(Optional) The minimum length of characters the field is allowed to have."|t('freeform'), name: "types[number][minLength]", value: field.getMetaProperty('minLength'), size: 3, }) }} {{ forms.textField({ label: "Max Length"|t('freeform'), instructions: "(Optional) The maximum length of characters the field is allowed to have."|t('freeform'), name: "types[number][maxLength]", value: field.getMetaProperty('maxLength'), size: 3, }) }} {{ forms.textField({ label: "Step"|t('freeform'), instructions: "Step increment property"|t('freeform'), name: "types[number][step]", value: field.getMetaProperty('step'), size: 10, }) }} {{ forms.textField({ label: "Decimal Count"|t('freeform'), instructions: "The number of decimal places allowed"|t('freeform'), name: "types[number][decimalCount]", value: field.getMetaProperty('decimalCount', 0), size: 3, }) }} {{ forms.selectField({ label: "Decimal Separator"|t('freeform'), instructions: "Used to separate decimals"|t('freeform'), name: "types[number][decimalSeparator]", value: field.getMetaProperty('decimalSeparator', '.'), options: { '.': '.', ',': ',', } }) }} {{ forms.selectField({ label: "Thousands Separator"|t('freeform'), instructions: "Used to separate thousands"|t('freeform'), name: "types[number][thousandsSeparator]", value: field.getMetaProperty('thousandsSeparator', ''), options: { '': 'None', ' ': 'Space', ',': ',', '.': '.', } }) }}