I need some customization done on the webforms module.

I'm specifically looking for 3 things:
1. Fix file attachments: files are supposed to be stored in the specified directory. Currently the directory gets created but files don't get stored there. They're not attached to emails either, and should be.
2. allow for the email-to to be able to be selected from a form field - in my case it would be a select but I suppose it could/should be written to support any field - some may want hidden, some may want multiple checkboxes and it go to all addresses etc.
3. Allow for a field to be selected to generate a pdf (the field could then be hidden, as i would need or a checkbox that others might use) and email that out as an attachment instead of plain text. This is probably the most complex part of it - the pdfview module might be able to be used for this in some way, or either the tcpdf (http://www.fpdf.org) libs, dompdf (http://sourceforge.net/projects/dompdf/) libs or other possibilities could be used to make this happen.

These are all 3 client requests (and the first one is supposed to already work), but I would hope and expect that these would be done in a way that they could be contributed back to the webforms module which is already pretty great.

Send me a quote that includes both how soon you could get it done as well as cost. Please respond only if you are able to accomplish all 3 requirements.

Comments

bomarmonk’s picture

This would be useful for me as well!

rgrocha’s picture

We has the same problem, we want the emails to be sent to the address specified by one of the fields on the form (we had a combo with the corporation departments emails/names pair options).

Once we removed the fixed "E-mail to address" field to avoid the webform own email, we put the following code on the "Additional Processing" field:

<?php
$message = 
"Correo electronico\n\r\n\r" . 
"Departamento:	" . $form_values['submitted_tree']['departamento'] . "\n\r\n\r" .
"Asunto:	" . $form_values['submitted_tree']['asunto'] . "\n\r\n\r" .
"Nombre:	" . $form_values['submitted_tree']['nombre'] . "\n\r\n\r" .
"Apellidos:	" . $form_values['submitted_tree']['apellidos'] . "\n\r\n\r" .
"Telefono:	" . $form_values['submitted_tree']['telefono'] . "\n\r\n\r" .
"Correo electronico:	" . $form_values['submitted_tree']['email'] . "\n\r\n\r" .
"Mensaje: \n\r\n\r" .
$form_values['submitted_tree']['mensaje'];

$email_from_string = check_plain($form_values['submitted_tree']['nombre']) . ' <' . $form_values['submitted_tree']['email'] . '>';

drupal_mail('webform-submission', $form_values['submitted_tree']['departamento'], $form_values['submitted_tree']['asunto'], $message, $email_from_string);
?>

Our department (email) field were stored in $form_values['submitted_tree']['departamento'].

Hope this helps you.