I downloaded and installed facebox, and had a modal form working in about 5 minutes... this is how.
Some of this might not be necessary for you since you're already using the script, but I'm including it for anyone else who might be interested.
Download facebox, unzip the file and upload the entire folder to your theme directory.
Open the header.php file and include this inside the < head> section.
(you may have to adjust the file paths depending on your setup)
Open/Create page where you want to include the modal form, go to the content editor and switch to the HTML tab. Then you can add something like this.
<a href="#info" rel="facebox"><h3>launch form in modal window</h3></a>
<!-- begin hidden form -->
<div id="info" style="display:none;">[gravityform id=11 name=1.3Post Form description=false]</div>
<!-- end hidden form -->
Basically, You're hiding the form in a div inline in the page. When the facebox script is triggered, it will display the form in a modal window.
Of course, you'll want to actually insert your form id/name in place of the form in the example.
Save the page and you should see something like this when you click on the link you created.
modal form screenshot
There are other options of course, but you can refer back to the facebox script page to read up on those.
As a note, most of the modal window scripts will allow you to display a hidden inline div or inline content in very similar fashion. The implementation should be pretty much the same for those other scripts. You can refer to the script documentation for details.
Posted 6 years ago on Monday November 30, 2009 | Permalink