12 Posts
Skunk
7 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 VIP membership
4229 Posts
Kadministrator
7 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
7 years ago
0
Level 1

It would be great, thanks Klas

143 Posts
Stef
7 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 Book for SEBLOD