This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
12 Posts
Skunk
4 years ago
3
Topic

HTML5 added several new input types:

  • color
  • date
  • datetime
  • datetime-local
  • email
  • month
  • number
  • range
  • search
  • tel
  • time
  • url
  • week

Is it possible to add these new types in a future release? is there a workaround for this though? thanks

Get a Book for SEBLOD
4229 Posts
Kadministrator
4 years ago
0
Level 1

It is possble some will be added, but probably not very soon. Only workaround is to make new field plugin.

12 Posts
Skunk
4 years ago
0
Level 1

It would be great, thanks Klas

136 Posts
Stef
3 years ago
0
Level 1

Hi Skunk,

I have just tried adding Input type throu the Script field and it works. here's how I proceeded :

Edit text field you want to customize input type

  • Go down on "Stuff"
  • Go to Script (JS) field and type :

$("#myfield").attr('type','mytype');

Don't forget to replace "myfield" with your field name (but let the # in front) and replace "mytype with the type you need (ex: tel, email, number, search, etc)

Filling your form is now much easier on mobile...

Get a VIP membership