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.

Display users who submitted form on the page where the form was submitted

  1. I am wondering if this should be done, I have 2000 nightclubs on my site already created mostly with gravity forms by real nightclub owners, I have created another small form which I am going to insert on the bottom of every post in batch via shortcodes and via MySQL where after comes job applicants to ask for the job , they fill in the personal info about them and they send it to the author of the post and to me=administrator via confirmation emails.
    I have created for job applicants custom post type=portfolio and all submissions is also displayed on portfolio pages, every job applicant's name is a title of every custom post type submission something like http://www.mywebsite.com/portfolio/petra/ .
    I would like to display those names = titles of the custom post types portfolio on that post pages where the form was submitted, like this other applicants can see how every virtual nightclub is frequented, can this be done ? I was thinking to create custom post field for every nightclub and there store those submitters, how can I tell to gravity form to store applicants names = submitted form titles in those custom fields?
    On every nightclub page where the form were submitted should be a list of applicant's names with links to every applicant portfolio.

    Posted 11 years ago on Wednesday June 5, 2013 | Permalink
  2. I have also asked the same question on wordpress forum and they redirected me to the excelent Gravity Help Documentation so I promise that next time first of all I will search for all answers there:
    http://www.gravityhelp.com/documentation/page/Gform_after_submission
    I will ask you for the help anyway because I am sure that I will never be able to display in the post where is the CPT form this (I will better write it something as a mix html and query):
    With the help of your example from documentation I want to achieve this:

    //changing post content
        $post->post_content = <div class="portfolio-submitters"><a href="URL OF THE SUBMITTED FORM TITLE"><img src="http://www.mysite.com/flags/{COUNTRY:16}.png">{Name:36}({AGE:28})</a></div>

    example from GF Help documentation:

    <?php
    add_action("gform_after_submission", "set_post_content", 10, 2);
    function set_post_content($entry, $form){
    
        //getting post
        $post = get_post($entry["post_id"]);
    
        //changing post content
        $post->post_content = "Blender Version:" . $entry[7] . "<br/> <img src='" . $entry[8] . "'> <br/> <br/> " . $entry[13] . " <br/> <img src='" . $entry[5] . "'>";
    
        //updating post
        wp_update_post($post);
    }
    ?>
    Posted 11 years ago on Friday June 7, 2013 | Permalink
  3. Hi again, I have attached screenshots to explain it better to how to display "{embed_post:post_title}" with its URL of the succesfully created portfolio of the submitted form after succesfull submission in the list one row by one in the post ?
    I would like to have a list of submitters of the current post in the post with URL to the newly created form
    Here is the screenshot of the post how I would like to have it.
    post before submissions screenshot 1: http://4ella.com/tour/screen1.png
    post after five successful submissions screenshot 2: http://4ella.com/tour/screen2.png
    Example page is here: http://4ella.com/2011/12/blue-moon-roma-2/
    thanks Daniel

    Posted 11 years ago on Friday June 14, 2013 | Permalink