PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

can I use a form in an external html page ?

  1. Hi Team,

    I use PrettyLink to redirect this page http://www.sophosfrance.tv/xyz to this page http://www.sophosfrance.tv/content/xyz.html

    I need to insert a gravity form into my xyz.html page, is this possible ? Is there another GF plugin for webdesigners ?

    Thank you so much for your help, I really need to do it as quick as possible.

    Posted 12 years ago on Friday October 19, 2012 | Permalink
  2. Gravity Forms requires WordPress to run so you can't simply put a form on an external (non-wordpress) page and run it there. You would need to create a plain page template with your form on it in WordPress, then you could iframe that page into another external HTML page somewhere.

    That's a few extra steps but it can be done.

    for reference: http://www.gravityhelp.com/forums/topic/possible-to-use-gravity-forms-outside-of-wordpress

    Posted 12 years ago on Friday October 19, 2012 | Permalink
  3. Many thanks Kevin.
    I'm unfortunately not confident with "plain page template", never heard about that :-(
    Do you have any external ressouces about that to help ?

    Posted 12 years ago on Friday October 19, 2012 | Permalink
  4. Sure.. the "plain page" template is basically just that.. a page template with only the basic elements that your form/WordPress need to run.. no other presentational markup or styling. The idea being that you end up with a plain white page with just your form. From there, you can iframe that page wherever you like without introducing other styled elements.

    http://www.gravityhelp.com/creating-a-modal-form-with-gravity-forms-and-fancybox/

    There is an example "plainpage.php" there that you can grab. Please be aware that post is older so you'll want to make sure that you're calling the latest/correct versions of jQuery and other Gravity Forms specific scripts in your page template. Of course that page is more about using a form in a modal window, but the overall concept is the same.

    If you get stuck, just yell and we'll be happy to help out,

    Posted 12 years ago on Friday October 19, 2012 | Permalink
  5. Sounds perfect Kevin, thanks. I'll work on that as quick as possible and come back here is case of trouble.

    Posted 12 years ago on Saturday October 20, 2012 | Permalink