Graham Quince Posted January 13, 2021 Share Posted January 13, 2021 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 comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now