date picker controls

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

date picker controls

ldeck
Hi there,

the docs for the datePicker states that for 2 digit year entry,
- 10 will be interpreted as 2010
- 80 interpreted as 1980
- 60 interpreted as 2060

Is there any control over these decisions available?
For a birthdate, for example, any interpretation that results in a future date makes no sense.

cheers,
Lachlan

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-controls/input-control#TOC-Date-picker-configuration

--
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: date picker controls

Alessandro  Vernet
Administrator
Hi Lachlan,

You can't configure this (short of changing the code). You can see how the code works by following the link below. It will take you to the _parseYear() function, which does this job. It is JavaScript, so quite easily modifiable if you feel like it:

https://github.com/orbeon/orbeon-forms/blob/tag-release-4.3.1.0-ce/src/resources-packaged/ops/javascript/xforms.js#L864

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