aquintanilla Posted July 19, 2021 Report Share Posted July 19, 2021 Hi everyone! Is there a way to create a modal notification or popup message that will tel the user to dont forget to save their form after 30 minutes of opening the form? Quote Link to comment Share on other sites More sharing options...
kpcollier Posted July 19, 2021 Report Share Posted July 19, 2021 This may not be the best way, but it should work. Put this in the footer of your datapage. The '1800000' is 30 minutes in milliseconds. <script> document.addEventListener("DataPageReady", function(){ setTimeout(function(){ alert("Please save your work."); }, 1800000); }); </script> aquintanilla 1 Quote Link to comment Share on other sites More sharing options...
kpcollier Posted July 19, 2021 Report Share Posted July 19, 2021 If you have multiple datapages on one webpage, the alert might go off for all of them when loaded. If this is the case, you'll need to modify the script a bit. document.addEventListener('DataPageReady', function (event) { if (event.detail.appKey == 'MY_DATAPAGE_APPKEY') { setTimeout(function(){ alert("Please save your work."); }, 1800000); } }); You can find the DataPage's Appkey for 'MY_DATAPAGE_APPKEY' in the 'Properties' section of the datapage in the Caspio Bridge. aquintanilla 1 Quote Link to comment Share on other sites More sharing options...
Kurumi Posted April 8, 2022 Report Share Posted April 8, 2022 Hi! I would like to share this helpful video from Caspio Labs about using modal in DataPages: Check the description to download the files needed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.