html5 date element

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

html5 date element

WillemV
Hi,

A question about form rendering on mobile devices: we're using xf:date for date fields which show up as a native date control on iOS. That's great.
On Android however we're getting a javascript date selection window. I guess it would be different if Orbeon would render the date field as input type="date" instead of text. Are there any plans to move in that direction?

This question is probably related to:
https://github.com/orbeon/orbeon-forms/issues/106

Thanks,
Willem


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: html5 date element

Alessandro  Vernet
Administrator
Hi Willem,

True, we won't be able to get rid of the current "JavaScript date picker" for a while [1], but we should do the same thing we're doing on iOS for Android as well. Right now, there is code adding the `xforms-ios` class on the body if we're on iOS [2], and then different code dealing with the native date picker based on that class [3]. For now, I created an RFE [4], but unless we get a pull request or a customer to sponsor this, we won't get to do this in the short term.

[1] http://caniuse.com/#feat=input-datetime
[2] https://github.com/orbeon/orbeon-forms/blob/tag-release-4.8-ce/src/resources-packaged/ops/javascript/xforms.js#L3806
[3] https://github.com/orbeon/orbeon-forms/blob/tag-release-4.8-ce/src/resources-packaged/ops/javascript/orbeon/xforms/control/Calendar.coffee#L41
[4] https://github.com/orbeon/orbeon-forms/issues/2084

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet