JavaScript Method to disable Supsystic popup
-
We have integrated a gravity form into a popup. I was wondering if there is a JavaScript method to disable a popup or prevent it from showing when a user hits the submit button? Here is my jQuery function:
jQuery(window).load(function() { jQuery("#gform_submit_button_15").click(function(){ localStorage.setItem('popup_submitted', true); }); if(localStorage.getItem('popup_submitted') === true) { // Method to disable popup goes here. } });
I have noticed that this can’t be done on a user action filter as I don’t think the plugin has gravity forms integration.
Thanks,
Simon
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JavaScript Method to disable Supsystic popup’ is closed to new replies.