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.

displaying a form on a non-wordpress site?

  1. blogartisan
    Member

    I'd like to create a form on my wordpress site but then host that form in just a plain old html page on a web server. The details: for my day job, I have an area on our webserver where I upload templates, videos, and other stuff for our clients to use (http://docs.oasis-open.org/templates/. I'd like to create a form they can use to submit requests to me - and I'd like to be able to use Gravity Forms to design the form and then either extract the code and paste it directly into an html page, or somehow call the form from the site where I have Gravity Forms installed without the submitter being redirected to my (non-day-job) (http://blogartisans.com) site. Is that possible somehow?

    Posted 10 years ago on Wednesday April 28, 2010 | Permalink
  2. You could create a very simple page template, embed your form and then iframe it from your other site. Very similar to the process outlined here.

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

    Posted 10 years ago on Wednesday April 28, 2010 | Permalink
  3. blogartisan
    Member

    Thanks Kevin, that's awesome! And now I know what an iframe is :)

    I'm off to give it a try.

    Posted 10 years ago on Wednesday April 28, 2010 | Permalink
  4. blogartisan
    Member

    Ok. Tried. Failed.

    I copied the the sample exactly - added script to wp_head, created a blank page template, created a page in my wordpress site that uses the blank page template calls a gravity form.

    I then created a blank html page and uploaded to my work site and replaced the supplied sample anchor link with the wordpress page link. It simply goes to the wordpress page and displays it.

    I thought I'd better troubleshoot and see if it worked on the wordpress site, but I get the same results - launches the form page rather than a modal/iframe box.

    wordpress page intended to display the modal box:
    http://blogartisans.com/testing-forms/

    wordpress page using the plain page template and containing nothing but the gravity form shortcode:
    http://blogartisans.com/public-review-request/

    day job page intended to display the modal form:
    http://docs.oasis-open.org/templates/TCAdminRequests.html

    Help?

    Posted 10 years ago on Wednesday April 28, 2010 | Permalink
  5. blogartisan
    Member

    UPDATE: Had the wrong version (1.3.1 instead of 1.3.0) and forgot the class att on the wordpress test file; it's now working.

    BUT, the one on the day job site still just brings you to the actual form page rather than popping up the modal box. I'm guessing a bit of code or something needs to go on the TCAdminRequests.html page in order to make it work?

    Posted 10 years ago on Thursday April 29, 2010 | Permalink
  6. blogartisan
    Member

    FINAL UPDATE: Copied the script into the header of the page on docs.oasis-open.org and it works like a charm!

    Sorry for all the updates but excited to get this working!

    Posted 10 years ago on Thursday April 29, 2010 | Permalink
  7. Good news. We're glad you're excited and congratulations!

    Posted 10 years ago on Thursday April 29, 2010 | Permalink
  8. FYI, I was able to get a form working on an external site (Facebook Fan Page) without Iframing it by duplicating the html from an existing form and adding this to the form tag

    <form method='post' enctype='multipart/form-data' id='gform_1' class=''name="ContactForm" action='http://my_wordpress_site_/?page_id=12'>

    I also had to create a bare template for the redirect page that confirmed the submission then sent the user back to facebook.

    Posted 10 years ago on Monday May 3, 2010 | Permalink