I’m sure I missed something stupid here…
In my blueprint I have a number field and I want users to be able to select only 2, 3, 4 or 6 :
client_perrow:
label: Images per row on large screens
type: number
icon: ellipsis-h
help: Select a number (2, 3, 4 or 6)
default: 4
validate:
in:
-2
-3
-4
-6
width: 1/2
This returns an error when selecting for example 5… All good!
But unfortunately it also gives an error when selecting any of the good values.
What am I missing?
PS: I’ve tried the array with and without spaces. I based this on https://getkirby.com/docs/cheatsheet/validators/in