For page transitions and AJAX content changes, I have implemented swup.js. However, Gravity forms is not properly handling the AJAX request and the form stops working after transitioning.
To reinitialize my scripts upon page load, I am using the following code snippet:
document.addEventListener('swup:pageView', (event) => {
// insert your code here
})
I am wondering if there is a specific JavaScript function I can use to ensure that Gravity forms are reinitialized with each page transition. I searched the documentation but could not find any relevant information.