I have a webform that has a "select options" field with a list of e-mail addresses and names, formatted like this:

bob@blah.com|Bob
jane@blah.com|Jane

I'm trying to use that field to send e-mails to the selected user when the webform is submitted. On the e-mail overview screen, the form field correctly shows up in the drop-down of available fields under the "Component value" option (see "overview.png").

However, when I select the field in question and click "Add", and get redirected to the detailed e-mail editing form, the select option field that I was able to choose on the overview screen is no longer an option (see "detail.png").

Shouldn't these two drop-down fields agree with one another?

CommentFileSizeAuthor
detail.png10.41 KBtjg
overview.png11.79 KBtjg

Issue fork webform-2681337

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tjg created an issue. See original summary.

tjg’s picture

So I found out some more information on this. The problem appears to be that if you have too many entries, it does not show up in the e-mail configuration screen. If I drop the number of entries down to less than about 50, it seems to work, but if there's more than 50, it does not.

edvanleeuwen’s picture

I can confirm that this is a problem. For me, I cannot choose the e-mail as a recipient.

As a workaround: I figured out that it is not the number of entries, but the total number of characters. If you limit your key, than you can add more.

You have to increase the value of Select email mapping limit setting in

admin/config/content/webform

.

Liam Morland made their first commit to this issue’s fork.

Liam Morland’s picture

Version: 7.x-4.12 » 7.x-4.x-dev
Status: Active » Needs review
Parent issue: » #687606: Add conditional email sending feature

There are commits fixing two different aspects of this on the issue fork. Please give them a try.