The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
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 ![]() 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 |