It would be nice if the person that submitted the form was able to receive a copy of the webform they just filled out. I am thinking a simple check box during the form creation that says: "Submitter Receives Copy of this Form" would suffice.

I see in the code that the users email address is read in, but never set in a variable (that I can find anyway).

Of course, this would only work if webforms were setup for registered users only. I am not sure how it would affect the rest of the code and how to ignore if the email address is not available, ie for anonymous users.

Comments

jnt’s picture

How about a summary of their answers on the "thankyou confirmation" page that they can cut and paste if they want, with a note to that effect?

This would be valid for everybody registered or not.

As a feature it could be enabled/disabled from the settings page.

GrayThunder’s picture

Excellent idea. The user could either cut and paste or do a "print screen" if they wanted to keep paper records. (Some people still do that. :) )

wilddev’s picture

How about using the actions module to be able to configure and/or do this?

GrayThunder’s picture

Can I use this actions.module (CVS) on a 4.5.2 drupal installation without problems, or do I need to be running Drupal-cvs?

jnt’s picture

It's very much a try it and see. However, you can definately use webform CVS with 4.5.2 including my patches.

Capnj’s picture

Version: » 4.6.x-1.x-dev

I feel like the submitter REALLY needs a copy via email. A page of the submitted data to print as hard copy would be ok, but anyone using a drupal system and accessing a webform is gonna have email. I can't imagine any other scenaria. Then if they want a hard copy, they could print one although a 'printer friendly' confirmation page with all submitted data might look nicer than a printed email.

gil

stevryn’s picture

There should be a confirmation page that shows them what they submitted, it should be printable and email'able. People like that warm and fuzzy proof of their submission. :)

abnaki’s picture

A simple "Click here if you'd like a copy" box would be nice. Most of my users wouldn't even know how to copy and paste.

K.I.S.S. :)

ullgren’s picture

Assigned: Unassigned » ullgren
Status: Active » Fixed

This is now added to the CVS. The email component has a CC checkbox.

quicksketch’s picture

I think it might be better if the user had the option to CC themselves (a checkbox on the client-side also) rather than always CC'ing.

I also added a webform hook for post-submission processing (which I'll be using for the file component eventually) that this modification should probably be using. For the email component, the hook declaration will look something like:

function _webform_submit_email ($data, $component) {

However, when I put this hook into the webform module, I only passed the data for that one field, not the entire submission as might be necessary in this case. Any ideas on how this might be done cleanly?

laura s’s picture

What if this were more of a confirmation email kind of thing, where the admin can write up a "Thank you" kind of email -- something similar to the on-screen message/redirect feature?

Anonymous’s picture

Status: Fixed » Closed (fixed)