Needs work
Project:
Poll
Version:
2.0.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Jun 2016 at 20:11 UTC
Updated:
23 Sep 2026 at 07:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
JoshuaF commentedComment #3
berdirThis is currently not possible, changing to a feature request.
Might not be so easy, needs a new setting to set allowed choices and switch to checkboxes if > 1. And figure out how to store and show.
Open for patches, but we currently have no plans to work on this.
Comment #4
JoshuaF commentedAny update on this Berdir?
I would love to upgrade to a newer version of Drupal but none of the polling modules I have found can compare to Advanced Poll from Drupal 7.
- Only show poll results after polls close
- Set a specific date and time to close poll
- multiple choice polls if there is more than one possible answer
Those are a few of the features I've seen that are missing and I require :(
Comment #5
berdirModules don't develop themself, someone needs to work and/or pay for that :)
We currently have no need for any of those features and therefore no plans to work on them, but if someone provides patches, then I'd be OK with including them, assuming the usual things: Test coverage, backwards compatible, configurable as necessary, ...
Feel free to get in touch with us (MD Systems) if you want an estimate to implement those
Comment #6
rasikap commentedComment #7
rasikap commentedPFA of the patch which supports multiple choice poll.
Thanks,
Rasika P
Comment #8
rasikap commentedComment #9
naheemsays commentedsame feature but a different route and without a patch: #3050637: Allow multiple types of polling
That approach may lead to a better architecture, though i am stuck on the preceding step of #3042995: Convert votes into entities.
Comment #10
berdirThis looks like a copy of the anonymous vote restrictions issue with these poll_vote changes that don't belong there.
Wondering if that is flexible enough. That means there is no limit on the number of votes someone can make, what if you want to limit to 2 or so?
Could possibly be a follow-up.
Probably makes sense to add a method for this, could be $poll->allowMultipleChoices() that returns TRUE/FALSE. Or maybe getAllowedChoicesCount(), that would currently either return 1 or count($choices)?
I fear this isn't quite so easy.
If you have 3 choices, select all 3 and submit then it will show 33% on each and 3 votes?
But that's not really the expected result? I'd expect them all to show 100% and 1 vote. Of course that makes this much more complicated, as we need to be able to group multiple vote records together or something like that.
Either way, this will definitely also need tests.
Comment #11
sushylThe last patch is not applying due to some changes in the module, here's the reroll patch.
Comment #12
sushyl@Berdir, I am not sure about this.
If one user votes for all three choices, since the votes are not weighted based on who submitted them, each of the choices will be considered as individual votes so the 33% result seems fine since everyone will have the same number of votes
(votes for choice x/total submitted votes).
Comment #13
ruslan piskarovHey @sushyl. Thank you for a patch. I have tested #11 and first looking, works well for my cases.
Comment #14
ivnishComment #15
bramdriesenThe rounding issue is being discussed in #3032307: Rounding error so I won't be bothering about that here.
Quite sure this needs a re-roll and preferably on the 2.0.x branch as a issue fork. This also needs tests and will potentially break others.
Comment #16
bramdriesenComment #19
szloredan commentedAdded patch for v2
Comment #20
bramdriesen#10 Is also not addressed
Comment #21
bramdriesenReworked a bit. Still some work and testing to do. Still needs to implement the limit field (numeric).
Not sure why in my mind I was thinking we needed the ID similar to the anonymous voting.
Comment #22
bramdriesenNeeds a re-roll after the anonymous vote restrictions got added. Probably removes some duplicate code from that issue as well (remark 1 of #10)
Comment #23
alexortega_98 commentedRe-roll for 2.0.0-alpha5 version.
Comment #24
janc48 commentedAny ambition to bring this feature into release? I think it is quite worthy and would be happy to use it.
Comment #25
bramdriesenLast time I looked at this was 2 Drupalcons ago :-) but then my focus was also on the anonymous vote restrictions. I can have a look at this again during contribution day.