Using Gravity Forms in a SPA approach

Hi,

I’m using gravity forms 2.8.3 in on a Wordpress site that uses a library to handle page transitions and loading of pages using ajax.

The form gets rendered by a shortcode. The problem is that when navigating between pages, the js files for the form does not get injected (since the head and footer does not re render).

How can i come around this? Ideally would be if i just could stick all forms js and load together with my own js files, on page load (wich ofc i can by copy and paste it). But that is not just ugly, it will also inject the script from the actual plugin once you refresh the page, having the same code running twice (head and footer re render).

Any suggestions?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.