Create method only working once when opening form inside of modal
-
Hello,
One of your recent updates has caused an issue with how we’re rendering forms inside of modals. We are using the create method on modal open:hbspt.forms.create( { portalId: modalData.portalId, formId: modalData.id, target: modalContentSelector, } );
Then using
modalContent.innerHTML = '';
to clear the modal content on close.This was working as of version 8.7.7 but now will only work on the first form opening in a modal. After modal close, trying to open a second does not append a new form to the target and it remains empty.
Much appreciate any help, thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Create method only working once when opening form inside of modal’ is closed to new replies.