Jump to content
  • 0

1 email after submitting several records


satch

Question

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

  • 0

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.

Link to comment
Share on other sites

  • 0

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/

 

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...