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.

Top X Results

  1. Hey Guys,

    Love GF, first time using Polls, and unfortunately my client is in a unique situation.

    The poll question has roughly 1,000 options, so displaying results essentially freezes the system, nor do we really care about all of them.

    Is there a way to pull the top 5/10 etc. results based on amount of times it has been voted on?
    I keep on looking through poll.php and even GF core to just find some code I can spit out on a page template, but have not been having any luck.

    link for reference: http://www.wearerecess.com/vote

    Thank You

    Posted 11 years ago on Saturday March 30, 2013 | Permalink
  2. 2 hours later and a lot of php manual reading.. I got it working, I think I will try to create a plugin around my chicken scratch code just because it is a cool feature to have..

    http://www.wearerecess.com/vote/

    Posted 11 years ago on Saturday March 30, 2013 | Permalink
  3. Please share the code here when you have it. Sounds like a neat addition to the code.

    Posted 11 years ago on Sunday March 31, 2013 | Permalink
  4. Its a work in progress.. its highly setup for this individual use case, but I am now building it out to be more open, and hopefully utilize default GF results output as well (percentages, etc.)

    https://github.com/royboy789/gravity-forms-poll-top-picks

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink
  5. Thanks for sharing that code. There will be lots of applications for it I believe.

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink
  6. Hey guys, not sure if anyone else wants this, but also just added in a way to specify which poll input you pull out in a form that has multiple poll inputs.

    Readme: https://github.com/royboy789/gravity-forms-poll-top-picks/blob/master/README.md

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink
  7. glen011
    Member

    I think that there a solution for that however i am also finding the right solution for it.

    Posted 11 years ago on Tuesday April 9, 2013 | Permalink
  8. Can you explain more what you need glen011?

    Posted 11 years ago on Tuesday April 9, 2013 | Permalink
  9. Glen011, if there is something you want me to make this plugin do, let me know and maybe I can add in the functionality for you.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink