Pop-Up Modal / Form Responsiveness is Broken HELP!

Highlighted
New Contributor

I'm creating a landing page in Hubspot & added customized HTML moduals to create a pop-up modal that includes an email form when clicked on. It works fine but every other page refresh the form moves from the pop-up modal to the bottom of the page. I cant seem to find where the issue in the JS, CSS, or HTML codes are, and suggestions? Can anyone helpe me?!

 

How it should be viewed.

Correct.png

 

How it's viewed very other page refresh. (this is the problem im having, issue highlighted in yellow)

Incorrect.png

Reply
0 Upvotes
2 Replies 2
Highlighted
Highlighted
Esteemed Advisor | Partner

@paige,

 

Can you share a link to the page with us? I imagine it might be an issue with your javascript not waiting until your dom is loaded before initiating. I can debug it if I have access to the page. 

Reply
0 Upvotes