Jump to content
  • 0

Auto Email On Report Page


Hearnie

Question

Hi

 

Does anybody have some code to automatically email a contact noted in a data report when that report is opened?

 

I have an accident report app that I hope will automatically email a person when their details have been viewed in the app.

 

Any help greatly appreciated.

 

Steve

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You could add an auto submitting reports details datapage with email notification that then forwards to the displayed data report.  This way an email notification is sent as the report is being opened. Just add the auto submit script below and add email notification and destination datapage. Just make sure you pass the record ID through so the final datapage displays correctly.

 

Here is the auto submit script for a reports details datapage - add it to the footer:

 

<script type="text/javascript">
  if(document.getElementById("caspioform")) {
  document.getElementById("caspioform").style.display = 'none';
  setTimeout('document.forms["caspioform"].submit()',1000); } 
</script>
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...