The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
email submission to user only if requested - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: email submission to user only if requested (/showthread.php?tid=611)



email submission to user only if requested - CalicoGirl - Mar 26th, 2010

I'm wondering if this is possible, although I think it probably isn't. I would like to have a field on the form that asks the user if they would like to receive a copy of the submission. It would be a radio button group - one yes and one no. Then, somehow there would have to be a way to check for a value of yes in that field. And if the field = yes, then include the user email in the notification email.

I'd imagine that there isn't a way to do this, but I'd like to know for sure whether it's possible or not.


RE: email submission to user only if requested - Ben - Mar 28th, 2010

Hi CalicoGirl,

Sure! You can do this with the Awesome Power of Views. This is actually a good idea for a tutorial.

In brief, here's how you'd do it:
1. In your form, add the "Yes, I'd like to receive a copy of this form" checkbox / radio button group, and configure it in Form Tools so that information is being stored.
2. Make a copy of any of your existing Views for that form, and call it something like "User: Request Email" or something more descriptive.
3. Add a new Standard Filter to the View. This filter would limit the results in that View to only show results that have "Yes" for that new field you added.
4. Create a new email template for the email content that will be submitted to the user. The key is to then map that email template to your new View, so that it only gets sent for submissions that appear in that View (i.e. the user's have requested "Yes" to the email question).
To do this, click on the Advanced Settings section on the Add/Edit Template -> Configuration tab and select the View in the "When Sent" dropdown option.

And that's pretty much it!

This covered rather a lot of ground rather speedily, so do let me know if I wasn't clear on anything.

- Ben


RE: email submission to user only if requested - martin_undefined - Mar 29th, 2010

Ben,

I thought that this solution might work as a temporary workaround for the 'email not being submitted when using paypal' issue. But it doesn't seem to.

Would you expect that?

Cheers

Martin


RE: email submission to user only if requested - Ben - Mar 30th, 2010

Hi Martin,

Ah no, the two problems are actually distinct. PayPal uses the ft_finalize_submission() function to finalize submissions - THAT's what should be sending the emails. However, there's a bug in that function: it simply doesn't send the emails. (See: http://bugs.formtools.org/index.php?cmd=view&id=195). I'll be fixing it in the next release. If you need it sooner, let me know and I'll post the new code.

CalicoGirl - I just documented a solution to your problem in the following tutorial:
http://docs.formtools.org/tutorials/optional_email_notifications/

- Ben


RE: email submission to user only if requested - CalicoGirl - Apr 2nd, 2010

Thanks so much Ben! You are awesome and Form Tools is awesome.


RE: email submission to user only if requested - CalicoGirl - Apr 5th, 2010

I tried it out and it worked perfectly! Ben, did I mention how awesome you are? :-)