Hi Guys,

is it possible to integrate Jscalendar for the date field.

something like :

 if (module_exists('jscalendar')) {
          $jscalendar = TRUE;
          $form['#jscalendar_timeFormat'] = '24';
     }

But I realized that all the form items (moth, day, year) are separated.

I was wondering if this feater can be add in the next release.

Thnx

mileZ

Comments

quicksketch’s picture

Status: Active » Closed (won't fix)

I don't have any plans to implement with any javascript based calendar. If you're wanting to implement this functionality you'll likely need to theme the date component and work in whatever solution you desire. Eventually we may be able to use date.module and CCK to leverage any available fields there, but that will be only for Drupal 6 and higher.

You can theme the webform date component by copying theme_webform_date() out of date.inc and pasting it into template.php, then renaming it to [yourthemename]_webform_date().

mileZ’s picture

Hi quicksketch,

thank you for the tip :-)

What do I have to add in theme_webform_date() in template.php?

Thank you!

mileZ