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 form submission results

  1. A client of mine wants an RSVP form so people can indicate yes/no/maybe they will attend a specific event. I was able to create the kind of form I want and record the entries for administrative purposes. But we'd also like to show visitors to the form page who has responded. I thought the poll add-on would do this but it only shows responses to the poll question itself (the number of yes/no/maybe responses). We'd really like to show the name associated with the response (I do capture name in the form) so visitors can see whether anyone they know has responded and how.

    Is there a way to do this with either the poll ad-on or an ordinary gravity form?

    Thanks!

    Posted 12 years ago on Friday September 21, 2012 | Permalink
  2. David Peralty

    The only way I know to do this would be to custom code it by pulling the data from the Database, which would require intermediate level PHP. The third party directory add-on might also be able to help you display the information, but I'm not certain.

    http://wordpress.org/extend/plugins/gravity-forms-addons/

    Posted 12 years ago on Friday September 21, 2012 | Permalink
  3. I'll look into the directory add-on, thanks David!

    Posted 12 years ago on Friday September 21, 2012 | Permalink
  4. Bummer, I think that would do exactly what I want but it looks like it may no longer be in developer or doesn't work in the latest version of WP. I got errors when I tried to install the file I downloaded from the codex.

    Posted 12 years ago on Monday September 24, 2012 | Permalink
  5. You can check in with the developer Zack Katz with your actual errors. He's very responsive and if you give him your exact error message, I'm sure he will be able to help you.

    Posted 12 years ago on Wednesday September 26, 2012 | Permalink
  6. However, I think the directory add on would be overkill for you. I did something similar (to show who had submitted a form) and you could extend this to filter by the response as well. It uses RGFormsModel::get_leads for the form, to get all the leads. Then you loop through the leads (submissions) and output all the Yes, No, Maybe, sort of like Evite does it.

    Code: http://pastebin.com/kHpaHQvi

    Discussion: http://www.gravityhelp.com/forums/topic/query-submitted-forms-from-custom-page#post-39682

    You would have to modify this slightly, since this assumes all submissions are in effect YES answers. You would have to qualify based on your Yes, No or Maybe response.

    Let us know if you need any assistance with that, if you choose to go this route.

    Posted 12 years ago on Wednesday September 26, 2012 | Permalink