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.

Confused about displaying poll results

  1. I've read the documentation and looked over several related posts, but it won't get through my thick head. This is what I want to do:

    I have included a poll in a form along with several other typical form fields. I would like to display the cumulative results of all submitted polls on the landing page after the form is submitted - but ONLY the poll results.

    I have tried using various shortcodes, but they all end up displaying the entire form. I only want to display the poll results for all submissions on the landing page.

    Please help. thx - Steve

    Posted 11 years ago on Friday March 29, 2013 | Permalink
  2. Are you using one of the two poll-specific merge tags?

    http://www.gravityhelp.com/documentation/page/Polls_Add-On#Poll_Merge_Tags

    {all_poll_results}
    {gpoll} (with options?)

    Posted 11 years ago on Saturday March 30, 2013 | Permalink
  3. N0 - aren't those for use within Post fields? Wouldn't those display the poll results within a single post generated by an entry? What if I had a dedicated page for only poll results - wouldn't I use a shortcode for that? Or could I use a Merge tag in page content?

    Posted 11 years ago on Saturday March 30, 2013 | Permalink
  4. Where are you trying to show the poll results? You said "on the landing page" but what are you referring to? The merge tags are only processed when Gravity Forms is. There are currently no shortcodes available to show poll results in a page on your site.

    Posted 11 years ago on Saturday March 30, 2013 | Permalink
  5. The landing page refers to where the user is sent (a page) after the submission is sent. This is a dedicated Thank You page that is different than the page the form itself is published on. From what it seems like, in your response (which is hard to follow), you are saying that I could poll 100 people, and then have no place to show the cumulative results for members of the website to see?

    It sounds like the only place you can view cumulative results of a poll is on the page where the form is published, and then only to those who have just submitted an entry for it. If this is true, this is very weird. And disappointing.

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  6. Sorry, I didn't mean for my response to be hard to follow. I will send this over to the developer of the polls add-on and ask for his input.

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  7. Steve Henty
    Administrator

    Hi Steve, have you tried using the poll shortcode with the mode set to results?

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  8. As I said in my original post, I have tried the shortcode but discovered that using it causes the entire form to appear where I only want the poll results to appear. I can't figure what should be inside the shortcode to exclusively display cumulative poll results. I have read the documentation. It won't go into my thick head. I don't get it. Sorry. I tried using only the ID of the poll field inside the shortcode but that doesn't work. All other attempts either didn't work, or I got the whole form whether I liked it or not.

    Is this an available feature? thx - Steve

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  9. Steve Henty
    Administrator

    Yes, if I'm understanding you correctly, you should be able to achieve what you're looking for if you use the shortcode with the mode set to results. e.g.
    [gravityform id="11" action="polls" mode="results"]
    When you use the shortcode like this does it display your form? It should display just the results.

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  10. This worked perfectly, though I wish I could display only certain polls and not all of them.

    I suggest that you modify your documentation to make this easier to figure out, with more examples. For example, it isn't clear from this description what the results of either of the following choices will produce:

    "You can choose to display the poll or just the results of the poll. Supported modes: poll or results. Defaults to 'poll'. (optional)"

    "Results" could be interpreted as either the results of just one person's input, or something cumulative of all input entries. Since I had tried the sample code and returned something other than what I wanted, I became disoriented. I suggest using the word "cumulative" in this description somewhere. Thanks for your timely replies.

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink
  11. Thank you for your suggestions. I'll bring them up with the documentation team.

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink