Forum

Thread tagged as: Question, Docs, Field-Types

New number field type

The update notes for perch 2.7.10 mention a new number field type, are there any docs for this?

Greg Riley

Greg Riley 1 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I'll add some, but it's basically just type="number". Is that not working for you?

Yes it is working fine and I like the up down arrows in the admin. I was just wondering if it had any magic options in the output that were different to having numerical data in a text field type? I am thinking I might like to take the output and do some basic calculations with it to return the answer I want to display.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, it literally outputs type="number" instead of type="text". I think you can also set the step attribute. It's nothing clever, very basic.