Open gravity form in modal window from button

Posted in: Newspaper
Post count: 113

I’d like to open a modal window from a button that displays a Gravity form.

Is this possible from a button or with some custom coding?

Post count: 35449

Hi,

This can be achieve using custom code, you can inspire from here -> https://www.w3schools.com/howto/howto_css_modals.asp the code can be set in text mode inside the posts or in Wp editor text on tagDiv Composer.

Thank you!

Post count: 113

Hi Calin,

I’ve tried this with the text editor for composer, the modal opens inside the panel, see:

https://prnt.sc/rnrneq

How do I do this so it opens normally on the page?

David

Post count: 113

I’ve taken the code out of the element and added it as custom html in the theme, now I’ve a new problem, it doesn’t embed the short code:

https://prnt.sc/rns3lc

Any ideas?

D

Post count: 35449

Hi,

If you want to use some shortcodes please do not use the html element, this will work only for html, not for shortcodes, for this you need to set the shortcode in a text or column text in this way the shortcode should render in a proper way -> https://imgur.com/CSPcls9

Let me know the results!
Thank you!

Post count: 113

Thanks, I have up trying and put the modal into my child’s footer.php

Post count: 35449

If this is working on child is all that matters.
Have a nice weekend!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.