title |
---|
Number (float) field |
Simple field for inputting numbers.
number:
type: number
{{ record.number }}
To use number values in Twig equations in {% for %} loops, the value must be extracted using the |trans
filter
{% for team in teams %}
{% set bonus = teams.score|trans + 2 %}
{% endfor %}
The field has a few options to change the functionality of the field.
min
The minimum accepted value.max
The maximum accepted value.step
How much to "step" the value up and down when using the browser controls.placeholder
Placeholder text inside the input control.mode
Number type. Can be eitherfloat
orinteger