Field Types / Number (float) field
Simple field for inputting numbers.
Basic Configuration:¶
number:
type: number
Example usage in templates:¶
{{ 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 %}
Options:¶
The field has a few options to change the functionality of the field.
minThe minimum accepted value.maxThe maximum accepted value.stepHow much to "step" the value up and down when using the browser controls.placeholderPlaceholder text inside the input control.modeNumber type. Can be eitherfloatorinteger
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.