How can I open an external URL in a popup?

I am loving Bricksbuilder and partner it with Jetengine to create exciting dynamic websites.

I am a bit stuck though. I need to open a form within a popup. I include some dynamic data within the form URL that is then used within hidden fields in the Jetform. It is pretty easy to create the link, including dynamic data, within Bricks but I can not figure out how to open that link within a popup.

Any help would be appreciated.

Are you able to create that form on a page in a single block? If so, create a template, add the form (e.g. in a code block). Then in the popup, insert that template.
If not… you will probably have to create a shortcode, build the form with a function and return it, using the shortcode in your popup.

Thank you for your advice. From my understanding of of the popup template, it is created with the page. In other words the form will be loaded as part of the current page. I need the form to load as an external URL so that it can accept the GET data in the URL. If there is a way to update the hidden fields within the form, depending on which button on the page was clicked, that would work.

I’m sorry I can’t quite piece together what you want. For what it’s worth, my solution would be to write the required info into a cookie instead and get the data from it in the form. That bypasses the need to open in a new url.
Sorry I couldn’t be more help.

Thank you for your persistence. Your cookie idea sounds like a great one. I have never worked with cookies before so it is going to take quite a lot of research but I think that would be well worth the effort.
Thanks again.

This should get you started…

Thank you. That is a massive help!