Last week I followed this tutorial to set up a popup modal for a website I’ve built. The popups function is to gather information from site visitors, but only when the button to activate it is clicked on by the site visitor. The tutorial create a popup with a little more complexity than I wanted, so I dug around a little more and eventually was able to create a popup that functioned the way I wanted it to. However, after publishing and testing, I found that the button would only work once unless the page was reloaded. Ideally, it should work whenever it’s clicked upon, since I was asked to include the button in several spots on the page.
Any solutions or suggestions as to how I could solve this would be appreciated.