Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I would like to use the newer input type of date in a form I'm putting together, but it seems couch does not support this, or does it? The homepage tutorial and tag reference don't show it listed, and I'm getting an error when I use:

Code: Select all
<cms:input type=="date"


Anyone mod this in, or is it in 2.2 beta? I'm currently using 2.1 beta.

Thanks. :)
The correct type is 'datetime'.
Please see - viewtopic.php?p=12667#p12667 for details on this type.
There it is! Thank you as always. :)
If you are looking for the 'date' type for a front end form, you want to use the HTML5 Input Types Add-on:
viewtopic.php?f=8&t=9781

The 'datetime' type that KK referenced is for editable fields that appear in the back end.
Oops! Just noticed that 'datetime' also works with cms:input.

The HTML5 Input Types Addon gives you <cms:input type='date' /> as well as all the other newer HTML5 Input types.
5 posts Page 1 of 1