ScottECE Posted September 13, 2015 Report Share Posted September 13, 2015 I need some HTML help for an Acknowledgement E-Mail. When I send an Acknowledgement E-mail to a customer, I want to send some additional information if they responded clicked on a checkbox in a submission form. I believe this can be done with If and Else statements, but don't know how to write the script. In layman's terms, this is what I'm looking for. IF "Smart Meter Authorization" is checked, THEN include a paragraph about Smart Meters ELSE don't include a paragraph about Smart Meters Thanks, Scott Quote Link to comment Share on other sites More sharing options...
iren Posted September 14, 2015 Report Share Posted September 14, 2015 Hello Scott, If you use Submission DataPage, you can add virtual field on the 'Configure Fields' step, make it hidden, add the 'Header&Footer' field and paste the following code in the footer: <script type= "text/javascript"> function checkbox() { if(document.getElementById("InsertRecordSmart_Meter_Authorization").checked) { document.getElementById("cbParamVirtual1").value = document.getElementById("InsertRecordSmart_Meters").value; } else document.getElementById("cbParamVirtual1").value = ""; } document.getElementById("caspioform").onsubmit = checkbox; </script> Than go to the 'Email Options' step and insert virtual field using parameter picker in the HTML message body. Hope it helps. Quote Link to comment Share on other sites More sharing options...
ScottECE Posted September 19, 2015 Author Report Share Posted September 19, 2015 Thanks! Quote Link to comment Share on other sites More sharing options...
iren Posted September 21, 2015 Report Share Posted September 21, 2015 I am glad my suggestion helped Quote Link to comment Share on other sites More sharing options...
Kurumi Posted July 22, 2019 Report Share Posted July 22, 2019 Hi @ScottECE, Just an update: You can use send an Email using Triggered Actions. Triggered Actions allow data manipulation, calculations and sending notifications by constructing application logic with a visual interface. They will be executed on specified events to perform actions on data in your tables. For more information about Triggered Actions, check it here: https://howto.caspio.com/tables-and-views/triggered-actions/ Hope it helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.