WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
[resolved] Multiple Answers (5 posts)

  1. saeedsaedi
    Member
    Posted 1 year ago #

    Hi...

    I create a poll with multiple answers and i think it have problem
    this poll have 4 answer that the visitor can choose two of them( test-1 test-2..)
    when a user come and choose test-1 and test-2 and vote , both of them became 100% i think it's wrong and each of them should became 50%

    if another user come and choose test-3 , test-1,2 and 3 became 50% it means if we plus them we have 150% !!! how we can fix it ?

    http://wordpress.org/extend/plugins/wp-polls/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    If you have multiple options, it will go above 100%

    First User (Only 1 Person Voted)
    test-1: 1
    test-2: 1
    test-3
    test-4

    So test-1 and test-2 has 1 vote each and only 1 person has voted and hence it is 100%. 1/1 = 1*100%

    Second User (2 Users Have Voted)
    test-1: 1
    test-2: 1
    test-3: 1
    test-4:

    So test-1 and test-2 remains at 1 vote each while test-3 gets one voted, but since now there are 2 voters, we divide all the 1 vote with 2 voters and hence you get 50%.

    We use the voters as a base and not the number of votes. I can't remember why I did that, it has been quite sometime, I guess if you use the number of votes, it can be quite skewed.

  3. saeedsaedi
    Member
    Posted 1 year ago #

    thank you , is there any way to use number of votes as a base ? we really need that !

  4. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    Not any easy way I can think of as it will break the single answer poll if we change it

  5. saeedsaedi
    Member
    Posted 1 year ago #

    OK , thanks for your answer

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic