Hi!

I can not receive the date from the datefield in the e-mail. Every other field is working fine. Of course I checked "include in e-mails", the Date is showing up in the submissions but not in the e-mail. Any idea whats wrong?

Cheers

Comments

dragan1974’s picture

Hi

I have the same problem but in my case also markup field is not showing in the email. Can you please explain how did you solve this problem and can anybody findout what is also the problem with datefield.

Best regards

jefftrnr’s picture

Status: Active » Needs review

The $data array sent to theme_webform_mail_date seems to have the wrong keys.

I think the least intrusive work-around would be to reset the keys with a theme-override function. Paste the code below into your theme/template.php file. In the meantime, hopefully the keys will get fixed for the next version.

function *theme*_webform_mail_date($data, $component) {
  $data['month'] = $data[0];
  $data['day'] = $data[1];
  $data['year'] = $data[2];
  return theme_webform_mail_date($data, $component);
}

(replace *theme* with the name of your drupal theme)

ptacq’s picture

Version: 6.x-2.1.3 » 5.x-2.1.3

Hi,

I have the exact same issue with Webform version 5.x-2.1.3: is there a workaround available for this version too?

Thanks in advance!

towlie’s picture

Hm, the thing with the template don't work for me but i can wait for a new version. Meanwhile I was looking for a date picker script to add to a textfield, which looks even better: http://www.softcomplex.com/products/tigra_calendar/ I'm struggling with the implementation. I have to add a name to the form like
. I there a way to add this attribute to the webform, like a template or something else?

Cheers

domesticat’s picture

Just a confirmation - I'm seeing the same bug in 5.x-2.1.3, and the template code shown above fixes the problem.

quicksketch’s picture

Status: Needs review » Closed (duplicate)