Calendar Picker not submitting as expected

Get help with using Metro 4 components
Post Reply
driviere
Posts: 5
Joined: Thu Mar 14, 2019 5:17 pm
Status: Offline

Calendar Picker not submitting as expected

Post by driviere » Mon Jul 29, 2019 10:40 pm

I have 2 calendar pickers alone on a form and when the form is submitted, only 1 calendar picker value reaches the controller. I added to sandbox and it's showing an error:

Sandbox

I've realized it is linked to the data-format because when I switch the format from "%d-%m-%Y" to "%Y-%m-%d" it submits successfully.

User avatar
olton
Site Admin
Posts: 239
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Tue Jul 30, 2019 8:46 am

Check your value for second picker. 31-00-2019 not a valid value.

User avatar
olton
Site Admin
Posts: 239
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Tue Jul 30, 2019 9:29 am

You must use input type text

Post Reply