Form completion Pop-up

I want to ensure clients are clicking the Submit button once completing the Survey. What would be the easiest way to configure a pop-up that notifies the end user to click the submit button to complete their submission when attempting to exit or close out the tab prior to completion? There are a few integrations triggered by completion and we have had a few instances of clients filling out the survey but the status remains partial since they did not click submit in the last section.

Hi there,

The top answer here can help with that. The flag variable can be a hidden field that changes value when the form is submitted (e.g, when a final thank you page is loaded)

Hello,

I am following up to revisit my original question. I am a bit confused how to implement the code you referenced - would I set it up as a logic rule that triggers once the user loads the Submission page? I essentially need a pop-up reminding the user to click the Submit button if they have finalized their answers. This would need to trigger both if the user tries to close the tab/browser or leave the page - if possible. Also, unsure what flag var you are referring to unless that was an arbitrary name. Did you mean that I should initialize a hidden var named flag to store a binary value once the submit button is clicked?

Apologies for the delay and I appreciate the support!

Thanks again!

Hi there,

You can add the referenced function at the Step load of your first step. Set the flag variable to true at this point (i’m referring to whichever variable is used in the code as the conditional variable - in the example it is “back”, you can create a feathery hidden field to use for this one). This should make a pop up appear if a user attempts to leave the page at any point. On click of the submit button, you can then set the flag variable to false to disable that before unload function.