satch Posted June 1, 2017 Report Share Posted June 1, 2017 Hi, I have a portal where users can add items. Now the only possibility is to send a notification email after every record. Is there a way to send an email after all the work is done. Even better: I have created a report with the additions nicely printed. Would be better to send that as an email to the email in authenticationform + our own email address Help is greatly appreciated johnybasha 1 Quote Link to comment Share on other sites More sharing options...
0 douvega Posted January 8, 2018 Report Share Posted January 8, 2018 Hi there, The way I would do it is by adding a sort of Status to your process. For example, when the work is done, user should mark a check box on or select the process status from a dropdown. Then, using JavaScript, track when status is changed to the one that should fire the email. When the file meets the conditions, then insert the email value(s) in a virtual field and assing this virtual field to the "To" option in the email wizard in the Caspio datapage. The JS solution would be something like this: var dropdownField = document.getElementById("YOUR_FIELD_ID"), emailField = document.getElementById("YOUR_VIRTUAL_FIELD_ID"); dropdownField.onchange = function(){ var ddValue = dropdownField.options[dropdownField.selectedIndex].value; if(ddValue == "YOUR_DESIRED_VALUE"){ emailField.value = "EMAIL_YOU_ARE_TRYING_TO_SEND_THE_NOTIFICATION_TO"; }else{ emailField.value = ""; } } You can place this in the DP footer. Do not forget to include the code between the script tags. <script>THE CODE DESCRIPTED ABOVE</script> I hope it helps. Quote Link to comment Share on other sites More sharing options...
0 NailDyanC Posted July 10, 2021 Report Share Posted July 10, 2021 Hi, just to add in the previous comment above, it seems that this workflow is possible using Triggered Actions. You can simply add a field(like a checkbox) at the end of your submission that once it is click then a trigger will fire to send an email. You may check this link about triggered actions: https://howto.caspio.com/tables-and-views/triggered-actions/ Quote Link to comment Share on other sites More sharing options...
0 Flowers4Algernon Posted June 29 Report Share Posted June 29 Hello! Just wanted to share this link for another video regarding Triggered Action: Quote Link to comment Share on other sites More sharing options...
0 SunakoChan Posted July 1 Report Share Posted July 1 Hi @satch, You may check here about sending email to the triggered action https://howto.caspio.com/triggered-actions/triggered-action-elements/actions-2/send-email/ Quote Link to comment Share on other sites More sharing options...
Question
satch
Hi,
I have a portal where users can add items.
Now the only possibility is to send a notification email after every record.
Is there a way to send an email after all the work is done.
Even better: I have created a report with the additions nicely printed.
Would be better to send that as an email to the email in authenticationform + our own email address
Help is greatly appreciated
Link to comment
Share on other sites
4 answers to this question
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.