How to replace the date field selects with one text field in Drupal 7 web forms I am using webforms in Drupal 7. Is there a way to set the date field to a single textfield instead of 3 select fields?
Since it seems like the webfrom module doesn't support this functionality yet, if found that the easiest way to do this, was to use a textfield and use form_alter to add the datepicker plugin.

function custom_form_form_alter(&amp;$form, &amp;$form_state, $form_id) {

  if($form_id != 'webform_client_form_2') return;

  // Alter textfield for date to integrate popup calendar
  $form["submitted"]["expected_move_date"] = array(
    '#type' =&gt; 'item',
    'finished_after' =&gt; array(
      '#type' =&gt; 'textfield',
      '#attributes' =&gt; array('class' =&gt; array('datepicker')),
      '#required' =&gt; TRUE,
    )
  );

  $form['#after_build'] = array('custom_form_uidatepicker');

}

function custom_form_uidatepicker($form, $form_state) {
  drupal_add_library('system', 'ui.datepicker');
  drupal_add_js("(function ($) { $('.datepicker').datepicker({
      showOn: 'both',
      buttonImage: 'sites/all/modules/custom/custom_form/images/calendar.png',
      buttonImageOnly: true,
      dateFormat: 'dd/mm/yy',
    });
    $('.datepicker').datepicker( 'option', 'minDate', 'd' );
    })(jQuery);", array('type' =&gt; 'inline', 'scope' =&gt; 'footer', 'weight' =&gt; 5));

    return $form;
}