Closed (fixed)
Project:
Webform
Version:
5.x-2.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2009 at 16:28 UTC
Updated:
9 Mar 2009 at 15:07 UTC
Hi again,
Over here #363255: Using "Additional Validation" for complex conditional recipients? I learned to use Additional Processing and set up the following:
When I submit my form, the values all look correct -- in the database the email_address_send field shows the correct value (reset to match the zip). But the actual email is being sent to the default address, instead of the one set by Additional Processing.
I'm not sure where to start looking for a fix, since the default address never shows up in the final entry. Do the notification emails get sent before the Additional Processing field is parsed?
Thanks for any thoughts!
Comments
Comment #1
leenwebb commentedAh! It seems that given enough time and apple pie I am capable of solving my own problems. Who knew!
So in that Additional Processing field, I changed the following values:
And that saved the correct value in the form submission but did not result in the notification being sent to that address. To make that happen, I also had to change this value:
And now is all hunky-dory! The new address is saved the database, and said address also receives the email notification about the form submission. (If anyone else is doing the same thing: you could also add a whole new value to $node->webform['additional_emails'] and the code is clever enough to know to send an email to each address in the array.)