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.

Gravity Form Embed in Post or Page Template submit not working

  1. Hallo Gravity support, I hope you can help me

    I have created a Wordpress Page Template,

     * @package WordPress
     * @subpackage Default_Theme
    Template Name: Submit
    <div class="ginput_container">
    <?php gravity_form(1); ?>

    All of this works, but when I now embed this form into Magento as I do with the Calendar and all other plugins on my website, the form does not submit. I troubleshooted it to the fact that action="" is blank.

    I can fix this by adding a filter in my functions.php like this,

    //Gravit Forms .. replace Action="" for Event submissions page
    add_filter("gform_form_tag", "form_tag", 1, 2);
    function form_tag($form_tag, $form){
    $form_tag = preg_replace("|action='(.*?)'|", "action='/blog/wp-submit/'", $form_tag);
    return $form_tag;

    However, by doing this the form does not check for required fields :/ and rather now takes me to the Page Template URL, which looks nasty :/

    I need to make a couple more forms, but I am now stuck, and I need your brilliant coding advice :)
    Please help me, I need all the form data to be done on one page, for example,

    Thanks in advance,

    Posted 9 years ago on Tuesday September 14, 2010 | Permalink
  2. Solved ! The last upgarde fixed all the issues,

    1. I do not need to use filter in functions.php to set action to set action="" as the form now submit correctly, thank you very much for this
    2. form validation now works (AWESOME)
    3. embedding a form in the page template works (<?php gravity_form(1,false,false,false,null,true); ?>)

    Thanks again for an excellent contribution


    Posted 9 years ago on Tuesday September 14, 2010 | Permalink