Skip Navigation

[Resolved] Output Types numeric field as input type number in Form

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a numeric field in Types, but when I include the field in a Form it is input type="text". I would like to use input type="number".

Solution: At this time, Types and Forms only support input type="text". We have a feature request in place to improve this functionality, but I don't have an implementation schedule just yet.

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by beatR 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#914265

I declared a numeric field in Types. But the field outputs in cred as type=text. I need a type=number with up/down buttons. how do i do that?

and other thing: the error message in german on the field when entering letters instead of numbers is:
"Bitte geben Sie ein numerisches Datum ein."
which means: "Please enter a numeric date". pretty wrong... can you change that?

greets!
Beat

#914484
Screen Shot 2018-06-17 at 4.39.49 PM.png

I need a type=number with up/down buttons. how do i do that?
Toolset Forms do not currently support the HTML 5 input type=number, but we have a feature request in place to make some improvements in these fields. At this time we only support input type=text for numeric fields.

which means: "Please enter a numeric date". pretty wrong... can you change that?
Thanks for the report. I'll put in a request to update this translation. You can change it manually in the Post Field editor screen for now - see the screenshot.

#914492

Thanks Christian! And thanks for pointing out where to change the message, i actually changed it somewhere esle and it did not work (duh).