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.

how do i get post data to display after form is rendered

  1. Hi

    So we have a form with 2 pages 1 st page is the data entry second is the preview before rendered. We would also like to get the data from the post to show on the following page after the post is rendered. Is there a way to do this? maybe display the title and thumbnail in a iframe or is there a better way?

    please check our http://www.adszoom.com and post a test ad if you need a visual......

    Posted 12 years ago on Friday May 4, 2012 | Permalink
  2. This is exactly what I want to do too. I will follow this topic

    Posted 12 years ago on Saturday May 5, 2012 | Permalink
  3. David Peralty

    Check this out and let me know if it helps: http://gravitywiz.com/2012/04/30/simple-pre-submission-confirmation/

    Posted 12 years ago on Monday May 7, 2012 | Permalink
  4. Quick question dose this snippet show the data from a post that was approved and submitted ( already posted ) from the prevues page (page 2). We are going to ask for the money here and do not want the person to leave without the new post being submitted.

    Posted 12 years ago on Monday June 11, 2012 | Permalink
  5. Ya this is supper handy for shore but not what we are looking for here is a page on our old site that gets the post that was just submitted ( finished/done) We did not use GF for this at all. This is why i have the questions, im just new to GF, check out http://www.thebartertown.net/preview-standard-plus/ if you post an ad on this site http://www.thebartertown.net it then shows the ad JUST posted in the preview that we made. So if the member then leaves the post was still finished.

    Any ideas ??

    Posted 12 years ago on Monday June 11, 2012 | Permalink
  6. David Peralty

    You could pass the values after submitting via the redirect and include the details of what was submitted. You could then pick it up using PHP and display it.

    • Go to Form Settings
    • Then to Confirmation
    • Select Redirect
    • Put a Check in Pass Field Data Via Query String
    • Select the details you want to display on your final page
    • Pick a URL you want to send this to.
    • Then using PHP you can pick up the details and display them however you want.

    The user has already completed the process at this point.

    Posted 12 years ago on Monday June 11, 2012 | Permalink
  7. Oh ok so if i use the CONFIRMATION " pass field data via query " then include this on the out put page it should work

    in form merg tag {Contact Phone:12}
    on output page
    $phone = $_GET['Phone:12'];
    echo $phone;
    ?>

    in url

    http://nichedeliverysystem.com/preview-your-ads-with-the-2-0-classified-ads-platform/?%28609%29287-2993

    but i cant get this to work i know im missing something basic can you see it? it will not pull value to out put page.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  8. or better ex

    <?php
    $phone = $_GET{'Contact Phone:12'};
    echo $phone;
    ?> on out put page and {Contact Phone:12} merg tag

    and url

    http://nichedeliverysystem.com/preview-your-ads-with-the-2-0-classified-ads-platform/?%28609%29287-2993

    still no good lol

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  9. David Peralty

    So in your query string you should have phone={Contact Phone::12}

    Then in your PHP you would have:

    <?php
    $phone = $_GET["phone"];
    echo $phone;
    ?>
    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  10. hm ok now it passes the phone # hw do i get "phone={Contact Phone::12}" into the string what would i put in the phone# field on form? or

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  11. David Peralty

    I am not sure I understand. Can you please tell me more about what you are trying to do?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  12. ah sorry to confuse you. Right now under the form settings i have confirmation set to "redirect"
    i have only 1 "merge tag " to pass threw in the query string here is what the url looks like
    http://nichedeliverysystem.com/preview-your-ads-with-the-2-0-classified-ads-platform/?%28609%29287-2993 as you can see it passed the phone # .

    Now i want that # to eco onto the page that the value was sent to.

    here is what my code looks like

    <?php
    
    $phone = $_GET['Contact Phone:12'];
       echo $phone;
     ?>
    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  13. in the form this is the merg tag selected {Contact Phone:12}

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  14. cant get it to work is what im saying for some reason ?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  15. David Peralty

    In the redirect, you need to put what I placed above.

    phone={Contact Phone::12}

    That way you are assigning a variable to the phone number. Which will then let you pull it using get using the example I posted above.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  16. David Peralty

    Right now you are sending the phone number, but you don't give it a name, so you can't get it from the URL. That's why I have phone= in front of the merge tag.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  17. how do i put that in the redirect? "phone={Contact Phone::12}"

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  18. David Peralty

    You put that in the redirect by manually writing it in. Look at the sample below the field.

    http://upranked.com/here.png

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  19. /?phone=(609)287-2993 in the url now lol thanks somehow the cash was doing something lol. I'll be working on this all day if i have more questions can i let you know? Thanks David you the man...

    Ps can we keep this open for now and just talk on this topic via this discussion?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  20. David Peralty

    The only reason we close discussion topics is because when you start a new topic, it will be handled by whomever is around instead of whomever has responded before by default. I may not always be around to answer your questions. If they are pressing, please start a new thread related to a new issue to have anyone around pick it up and run with it. For now, I'll keep this open though.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  21. thanks

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  22. ok so if im assigning the value to molti fields do i use this

    title={Post Title::1}
    phone={Contact Phone::12}

    for some reason the redirect will not go to the landing page like this?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  23. title={Post Title::1}&phone={Contact Phone::12}

    ya this is the better

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  24. David Peralty

    You got it. :) you need it to be on one line with the ampersand separating them.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  25. oh ok but if the line wraps in the form its ok ? just make shore its all on the 1 line wrapped correct ? is there a limit?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  26. David Peralty

    It will be fine as long as you don't put a line break in yourself. And I am not sure what the limit is... I would say less than 255 characters would be ideal, but don't hold me to that.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  27. ok cool works grate do have issue with the images, dose now work as i use this

    title={Post Title::1}&category={Post Category::2}&phone={Contact Phone::12}&postimg1={Post 1 st Image::3}

    and this on the target page

    <?php
    $title = $_GET['title'];
    echo $title;
    ?>
    <br />
    <?php
    $category = $_GET["category"];
    echo $category;
    ?>
    <br />
    <?php
    $postimg1 = $_GET["postimg1"];
    echo $postimg1;
    ?>
    <br />
    <?php
    $phone = $_GET["phone"];
    echo $phone;
    ?>
    <br />

    there is 0 displayed on the target page ?

    idea?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  28. David Peralty

    What comes through in the URL regarding the post image?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  29. nothing not even the other fields

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  30. David Peralty

    And if you remove the post image section, it works correctly? I ask because I don't know if you can pass post image data like this.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  31. ya it works fine lol how else could we pass it?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  32. ya i put a limit of 150px 150px and still nodda

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  33. David Peralty

    The problem is not the size of the image, it is that an image isn't just a single word or number. You would have to customize Gravity Forms using the gform_post_submission hook to grab the name or URL of the image, encode it, put it in a hidden field, and then include the value of that hidden field in your query string. I can't walk you through those steps one by one as I've done here. That is beyond support, and leans into customization.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  34. ya even with a div around the php and css it will not work

    .postimg1{
    	height:200px;
    	width:200px;
    	border:solid 1px #000;
    }
    <div class="postimg1">
    <?php
    $postimg1 = $_GET["postimg1"];
    echo $postimg1;
    ?>

    ?>
    </div>

    `

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  35. ho

    ok do you have more info on the gform_post_submission hook?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  36. David Peralty

    Here you go: http://www.gravityhelp.com/documentation/page/Gform_post_submission

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  37. or screen shots?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  38. ya wow just mest with it gona need screen shots if you got them?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  39. David Peralty

    Sorry, I can't help you customize Gravity Forms to push an image through a query string. You'll have to figure out how to pass such data on your own because that is customizing Gravity Forms beyond what it is used for.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  40. hay thank you thou for all your help!

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  41. David Peralty

    You might want to post your requirements in the Job Board to see if some enterprising coder can help you out with this. It shouldn't be hard but again, it requires more customization that I can provide here.

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink
  42. ah ok so this hook dose all that you said above just need to assign the field keys?

    Posted 12 years ago on Tuesday June 12, 2012 | Permalink