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



Form Tools
If... Then... Statements If/Then - 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: If... Then... Statements If/Then (/showthread.php?tid=2803)



If... Then... Statements If/Then - jamiers - Jan 11th, 2014

Hi All,

I'm new to the Form Tools community. I'm a disaster services volunteer with the American Red Cross local chapter. I need a script that will allow me to type in fields and the output a email that is sent to the leadership. There are many of us that are "Supervisors-on-Call" (SOC) and I'm trying to standardize what comes out to our leadership teams so that they can disseminate information to the appropriate partners.

#1 - Is there a way to do If... Then... statements in the email templates? For example, I want to have a TypeOfIncident field. In this field it would say "Single-Family Fire, Multi-Family Fire, Other." There would be an TypeOfIncident-Other field. If the "TypeOfIncident" field says "Other" then it would pull in the "TypeOfIncident-Other" field into the email.

#2 - SOCs select their name on the form. They will also select their SOCemail as well. Is there a way to pass this to the email template so that it says in the actual email from-name and from-email?

Form Tools looks like it could be great for us... but these are deal breakers Sad

Jamie


RE: If... Then... Statements If/Then - jpkarlsen - Jan 15th, 2014

Hi,

I think you will be able to get where you want using a number of E-mails with predefined placeholders (content) and the right triggers for sending. If you need to send emails only if a field value is true you need to make a new view, containing a filter that only shows submissions when a field value is EQUAL or NOT EQUAL to your defined value. The you can set the trigger for the email to only send emails when a submission fits into that view.

Best regards,

John-Petter