Wednesday, April 27, 2016

WP - ACF frontend form showing "Are you sure you want to leave this page?" popup

This can happen after you submit your ACF frontend form via AJAX, and want to navigate away from the form page.


Disable this popup by setting this flag: = false;


<script type="text/javascript">
jQuery(document).ready(function() {

// setup fields
acf.do_action('append', jQuery('#popup-id')); = false; //disables "Are you sure you want to leave this page box?"

//remove update post:



No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...