The text fields when setting a webform to email its submissions to when selecting the Email address: Component option on the Webform / E-mails edit page states

'Form submissions will be e-mailed to this address. Any email, select, or hidden form element may be selected as the recipient address. Multiple e-mail addresses may be separated by commas.'

Yet the text fields for the address has a maxlength=123 attribute which sort of limits the amount of email address dependant on there length etc.

CommentFileSizeAuthor
Screen Shot 2015-01-14 at 12.54.25.png48.81 KBi-sibbot
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

i-sibbot’s picture

Quick fix in a patch module, adding a theme_registry_alter for said module and then

function MYMODULE_webform_email_component_mapping($variables) {
...

  foreach (element_children($element) as $key) {
    $element[$key]['#theme_wrappers'] = array();
    $row = array();
    $row[] = array(
      'data' => theme('form_element_label', array('element' => $element[$key])),
      'class' => array('webform-email-option'),
    );
    **** $element[$key]['#maxlength'] = 255; *****
    $row[] = drupal_render($element[$key]);
    $rows[] = $row;
  }
...
}

webform_email_component_mapping

DanChadwick’s picture

Category: Bug report » Support request
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.