Numbers field – block text input

Hi! I have a numbers field which I’d like to restrict to numbers and block any text input, is this possible? The default numbers field allows text input and text saves which results in empty fields on output.

My blueprint:

          paypalpreis:
            label: Paypal Preis
            type: number
            when: 
              paypaltoggle: true

Thanks!

Bildschirmfoto 2021-01-08 um 14.08.15

If this validates on save, then that’s a bug. I’m not sure if it is possible to completely prevent adding other characters than numbers.

1 Like

Yeah, it saving :man_shrugging:

In draft or in published status? Kirby doesn’t validate drafts…

published