Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. πŸ‘€

Integer Fieldtype

The integer fieldtype is a text-style input that only accepts integers (numbers) and has increment and decrement controls.

Screenshot of Integer Screenshot of Integer
The Integer Fieldtype in action!

Overview#

The integer fieldtype is essentially an HTML5 input with type="number". Using the up and down keyboard keys will increment and decrement the value by 1.

Data Storage#

Stores an integer – a whole number that is not a fraction.

Options

append

string
Add text after (to the right of) the integer input.

prepend

string
Add text to the beginning (to the left of) the integer input.

placeholder

int
Set a default placeholder value.

min

int
Set the minimum allowed value.

max

int
Set the maximum allowed value.

step

int
Set the interval between valid numbers.