I have spent some hours of figuring out why i repeatedly got the error "The value input for field Date of xxx is invalid', without being able to save a multistep document.
First I found out that it only happens with the Date popup widget.
Then I accidentaly discovered that this error appears when the Date field is placed inside a fieldgroup of type Multistep. It specifically throws this error when the Date field is not on the last page of the form, that is, on the page where the submit button of the Multistep form is present.
If the field is placed inside a normal fieldset, but ouside of a Multistep fieldset, the error does not appear and the form is saved normally.
I'm not sure if fixing this is a task for the Multistep or the Date module.
Comments
Comment #1
mmagas CreditAttribution: mmagas commentedI'm experiencing this issue as well.
Comment #2
shivachevva CreditAttribution: shivachevva commentedI am also facing the same issue. Can any one fix this issue.
Comment #3
jayson13 CreditAttribution: jayson13 commentedI am also having this issue, i have posted it in the link below (i might be posted at wrong place)
https://drupal.org/node/1144074#comment-7623619
Comment #4
jayson13 CreditAttribution: jayson13 commentedI really needed this badly, any suggestion? I really need Multistep form and date working properly, my site can't work with only 1 of the feature.
I have ran through the old posts but still unable to find a solution for this.
Thanks!
Comment #5
andrea.brogi CreditAttribution: andrea.brogi commentedSubscribe. I have the same problem.
Comment #6
thefoo CreditAttribution: thefoo commentedSame issue.
Comment #7
2¢ CreditAttribution: 2¢ commentedI have the same issue.
Using a date field with text widget rather than date popup still generates an error for me. Date is not on last page.
Comment #8
wmad CreditAttribution: wmad commentedYou may be able to resolve this issue by adding
$form['#tree'] = TRUE;
which prevents your form structure from getting flattened.Comment #9
milos.kroulik CreditAttribution: milos.kroulik commentedThis is most likely another duplicate of https://www.drupal.org/node/1349510, because Multistep hides date field. Please review that issue and reopen this one, if you don't agree.