Want only 1 instance of modal popup triggered by multiple buttons

Hi,

I want only 1 instance of a modal popup triggered by multiple buttons.

I’m using a modal as a button, and triggering a popup that displays a form. My issues is that I have to duplicate the Modal several times on the page, so this means that the form being used (a gravity form) is also duplicated. Gravity forms doesn’t allow for several instances of the form on a single page, only 1. Therefore, what I would like is for a button to trigger a single modal popup instead of having to duplicate the the popup several times on the page. Please assist!

Hi @calebja,

Thanks for reaching out.
I would suggest you add the same class named open-modal-button to all the Buttons and then follow the instruction given in the following thread to achieve what you are trying.

Hope it helps.
Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.