Hello,

I'm trying to use the additional processing part of a webform. But it seems that no matter what code I enter, it ends up with a 404 page while trying to find the node//done?sid=x page.

If I move the code to the additional validation part, it works (printed out the results) but the fields where I changed the value are back to the original values entered before I hit the submit button, in the end.

Maybe my method is wrong according to what I want to do :
- the link to the webform appears on nodes as a link to contact the node's author. Therefore I need to get the nodes info into the webform.
- More precisely, I need to change the value of a field which is selected as containing a email to send the submission to, but that email has to be dynamically generated, depending on the previous node's author.

I'm not using the contact module because I need to add more fields to the submitted form.

Thanks by advance for any help.

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

Support for writing custom code is not provided in the Webform issue queue. Though just at a glance, it looks like the NID value has gone missing. Since you can modify local variables in the Additional Processing field, make sure that you don't overwrite existing variables such as $node or $nid.