Jump to content

Modal notification of "Don't forget to save your form" after 30 minutes


Recommended Posts

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. 

Link to comment
Share on other sites

  • 8 months later...

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

Loading...
×
×
  • Create New...