Sorry should have mentioned I am using AJAX.
Actually the modal exists on the page but the form doesn't and it's not hidden in the page. I am loading the form on-demand so it isn't there first page-load.
I don't know what repeaters are in Formidable Forms - I am just looking for a way to re-init the Formidable JS so that it looks at the DOM elements again.
The article I referenced may be about repeaters, but it's the only resource I have that teaches how to reinit JS after an Ajax call.
I see, well I am a experienced developer and know my way around JavaScript so I am really just looking for some pointers to documentation of some sort to a Formidable Forms alternative too:
const forms = document.querySelectorAll('.wpcf-form'); forms.forEach(form=>{ wpcf.init(form); });
Which reinitialises the form and all the event handlers.
Good luck with your challenge.
Please login or Register to submit your answer