Jump to content
Graham Quince

Email when a page is visited

Recommended Posts

Just been asked by a school if they could have an alert when their policies page is visited.  The Email API requires a logged in user, but the Form widget does not.  Using this code in an HTML widget with a Form on the page, you can auto-submit the form and trigger an email:

<script>
    
setTimeout(function(){  
    $('.btn-success').click();
}, 5000);
</script>

<style>
    div[data-content-uuid="WIDGET_UUID"] { /* Hides the form from view */
        display: none !important;
    }
</style>

 

Link to post
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.

Guest
Reply to this topic...

×   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.


×
×
  • Create New...