Webform multiple conditions recipient I am on a Drupal 7 website and I have a webform with multiple fields, one field is a selectbox with :


1-10 employees
10-20 employees
20-30 empolyees
...


Another one is an open textfield Postcode.

Webform offers the possibility to choose the recipients (e-mail TO) based on a component but not on multiple components.

For example, I want the mail to be sent to john@doe.com if employees = 1-10 and Postcode = 75000 etc.. And one more thing, I want my client to be able to change and contribute these rules. So a solution with Webform Rules will be too difficult for them in my opinion. I hope to find a solution within the webform e-mail interface.

Have you any idea how is it possible to do that without building a new complete custom form and keep the power of Webform ?

Thanks.
I suggest you try to avoid using simple textfield for the Postcode. Then you can use 2 dependent fields. The first field will be the select of employees number range. The second will be one of postcode selects, depending on the first choice. Then you can use the standard functionality: using select field key as the email.

If for a fixed employee number range you have individual emails for different postcode values then it is straitforward.

If not, still you can do it if all postcode values could be grouped into ranges, so that each range gets its own email (define select values for postcode ranges same as you did for employees number).