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.

post submitted results onto an exsisting static page

  1. les112
    Member

    I have a travel website with 100 static pages with each page dedicated to a particular location (e.g. venice).
    I invite readers to correct this information through a gravity form on each page. I want the result to be printed on the static page (eg venice) on which the reader filled out the gravity form ( page venice).
    I have read the php snippets issued on your forum of August 18 2010, but this produces a new static page. Could you please provide php snippet that instead will add the comments to the static page (eg venice) on which the gravity form has been submitted (eg venice).

    I have been able to get the subbitted text onto the static page( eg venice) using gravity forms 1.45 through a redirct dummy page using catagories (on the gravity form) that are the same as the static page slug, but the results are not sticky on the static page. The submitted text still appears as a post in the wordpress post list and if deleted there, will dissapear off the static page.

    Posted 13 years ago on Monday March 21, 2011 | Permalink
  2. Hi Les,

    So do you want to append the content from these form submissions to the page content of the location page the form was submitted from/for?

    Posted 13 years ago on Monday March 21, 2011 | Permalink
  3. les112
    Member

    Thanks for the reply. Yes I do.

    Posted 13 years ago on Monday March 21, 2011 | Permalink
  4. Hi Les,

    Quick walkthrough:

    1. 1 - You'll need to setup a hidden field in your form to capture the post/page ID of the post/page your user is submitting the form from. Example: http://grab.by/9BU4
    2. 2 - Paste this snippet into your theme's functions.php file: http://pastie.org/1699071
    3. 3 - Update the necessary portions of the above snippet as instructed in the inline comments
    4. That's it!
    Posted 13 years ago on Tuesday March 22, 2011 | Permalink