Forums

datetimepicker output is all garbled

hdwebpros 08 Jun, 2011
Here are 2 examples of the output from the datetimepicker

Rental End Date
94110

Rental End Date
30519

Those numbers dont resemble anything! Ack, what do I do?
GreyHead 08 Jun, 2011
Hi hdwebpros,

Which version of ChronoForms are you using and what settings do you have for the datapicker?

Bob
hdwebpros 09 Jun, 2011
v3.2 on J1.5.23

Settings (only ones I entered anything on)
Label: Rental Start Date
Size:20
Label Width:150px
Field Name:date_16

------------------------

Label:Rental End Date
Size:20
Label Width:150px
Field Name:date_18
GreyHead 09 Jun, 2011
Hi hdwebpros,

Please turn on Form Debug and post a link to the form so we can take a quick look.

My best guess is that the datepicker is outputting the normal 'd/m/Y' string but that the database column doesn't accept a string - perhaps it has type DATE (in which case you need a date format of 'Y-m-d' I think).

Bob
hdwebpros 09 Jun, 2011
I also switched the email to go to me. So test away.
GreyHead 09 Jun, 2011
Hi hdwebpros ,

Thank you - all that looks good. Could perhaps use some validation on the data fields but the result is what I would expect to see.

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look at the back-end and see if I can see what is happening there.

Bob
GreyHead 21 Jun, 2011
Hi hdwebpros,

I've been away for a few days to my daughter's wedding. I haven't checked my PMs yet.

Bob
GreyHead 23 Jun, 2011
Hi hdwebpros,

The dates look OK to me

[date_16] => 17/06/2011 [date_18] => 25/06/2011



What exactly is the problem you are seeing?

Bob

PS I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.
hdwebpros 23 Jun, 2011
Solved. Email template was generated funny. Deleted everything and it works great.

Off subject, (kind of) will 1.6 version be able to auto generate email template anytime soon?
GreyHead 23 Jun, 2011
Hi hdwebpros,

I don't know. Max has said that he will look at it. But I think that the modular design of CFv4 makes it harder to reconstruct the Form HTML in the way that CFv3 did.

Bob
This topic is locked and no more replies can be posted.