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="FORM_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.


  • Similar Content

    • By ghughes
      Hello,
      We had our email migrated from local exchange to o365. We setup a smtp mail relay, however, for o365 to trust this email addresses need to come from an email in our domain. The Frog server sends from an @frogtrade.com account which according to Frog support we can't change so I can't get the frogserver sending email notifications.
      Anybody else using 0365 email and getting email notifications working? If so how did you do it?
      Thanks
      Gareth
    • By K.Ermit
      Is there a way to set up a sixth form profile, so they can have their own dashboard?
    • By Sue Busher
      Hi
      I thought I was being clever creating a teacher directory which showed photos and an email to link for each teacher. However, when a pupil emails from home, it uses the mail default account and not their school email. Is there a way which I can tell it which email account to use through HTML?
      Just thought I'd ask and see if any coders out there know a way round my problem.
×
×
  • Create New...