Wrong date format

9 views
Skip to first unread message

danieldotnet

unread,
Feb 18, 2021, 4:16:46 PM2/18/21
to orb...@googlegroups.com
Hello

There seems to be a problem with the date format. Please look at the year.
Is there any way to validate the format and output a message if not correct?

<http://discuss.orbeon.com/file/t375765/18-02-_2021_13-44-53.png>

--
Sent from: http://discuss.orbeon.com/

Alessandro Vernet

unread,
Feb 19, 2021, 2:54:04 PM2/19/21
to orb...@googlegroups.com
Hi Daniel,

How did you get "3.12.190000" in the date? What are the steps I need to do
to reproduce this? And what version of Orbeon Forms are you on?

-Alex

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

danieldotnet

unread,
Feb 23, 2021, 1:56:37 PM2/23/21
to orb...@googlegroups.com
Hi Alex
Thank you for your answer.

I just write a wrong year myself to test if it validates.
It is a slightly older version: 2018.2.2

-Daniel

Alessandro Vernet

unread,
Feb 23, 2021, 2:55:59 PM2/23/21
to orb...@googlegroups.com
Hi Daniel,

Got it, 2018.2.2 already had the new date control (see 1st link below), but
maybe this issue has been fixed since then. Does the behavior in 2020.1,
where the date is "autocorrected", seem more reasonable to you? You can try
it in the 2nd tab of the Forms Controls (see 2nd link below). BTW, we're
thinking of changing this again, and keeping what the user entered, and
marking it as invalid, instead of trying to autocorrect it.

https://blog.orbeon.com/2019/02/improved-date-and-time-controls.html
https://demo.orbeon.com/demo/fr/orbeon/controls/new

-Alex

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

danieldotnet

unread,
Mar 2, 2021, 2:16:37 PM3/2/21
to orb...@googlegroups.com
Hi Alex

Thank you for your answer.
Marking as invalid seems to me to be the better solution instead of
autocorrect it.

- Daniel

Alessandro Vernet

unread,
Mar 2, 2021, 3:50:50 PM3/2/21
to orb...@googlegroups.com
Hi Daniel,

Perfect, and I created RFE #4794 to track this.

https://github.com/orbeon/orbeon-forms/issues/4794

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply all
Reply to author
Forward
0 new messages