Last updated April 22, 2010. Created by Andrew Maiman on June 9, 2002.
Edited by blisteringherb, LeeHunter, O Govinda, webernet. Log in to edit this page.

The Poll core module lets you create simple polls. You ask a question, provide possible answers, and let your users vote. Drupal then keeps a running tally of the results.

When you create a poll, Content >> Add content >> Poll (Drupal 5 and 6) or Content >> Add content >> Poll (Drupal 7), you can also specify the "base" vote counts (how many votes an item has at the start) and decide how long the voting will run.

You can enable the polls module on the modules page, Administer >> Modules.

The poll item in the navigation menu will take users to a page where they can see all of the current polls, vote on them (if they haven't already) and view the results.

On the access control page, Administer >> Access control (Drupal 5 and 6) or Modules >> Poll >> Permissions (Drupal 7), you can decide which users have permission to vote, to see the voting results, and to create polls of their own.

To change the settings for creating polls - Administer >> Settings >> Content types >> Poll >> Edit (Drupal 5 and 6) or Structure >> Content types >> Poll >> Edit (Drupal 7).

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

I have a basic poll on my site www.thePRguy.com. It is exhibiting strange and erratic behavior:

1. At lease some (if not all) unregistered users cannot submit a vote, even though it appears to "take." Worse, on every new page to which a visitor navigates, the poll is presented again, ready for a fresh vote.

2. After submitting a vote, a different apparently random content page loads, so far, either the catalog or a product page from my Amazon store (http://www.theprguy.com/amazon_store) or my Twitter feed (http://www.theprguy.com/aggregator/sources/3)

Brilliant solutions welcomed!

I have the same weird issue going on. I have tried checking permission, disabling, flushing cache. I have the vote looking like it takes too then sending the user to a totally random view page. Did you solve this?

venusrising

Does any have an idea how I might solve this problem?

Did you have any lucking finding an answer to this issue? It might be worthwhile to check the issue queue here - Poll.module issue queue.

I have a Drupal 6 site, all modules and core are up to date. I just attempted to enable and use the poll feature and have run into a problem. The poll creation page works, let's me enter the poll title and as many choices as I want. When the poll is posted (or previewed) the choices do not show up. If I go back to edit the poll, all of the choices are still there, they just don't show up in the node when it's displayed nor is there a vote button.

I looked at the page source for the node and the choices are not there, so they're not being hidden by css or anything of that nature.

Does anyone have an idea on why this might happen? The rest of the site appears to be working properly, but I'd really love to be able to add polls to the site.

Thanks!

1. Devload shows that the choice() array of nid object is not empty, all choices values are in the array.
2. Before updating to Drupal 6.16 all worked perfectly.
3. Content-area of poll node where must be $choices output looks like this:

<div id="content-area">
<div id="node-148" class="node node-type-poll"><div class="node-inner">
<div class="meta">
<div class="submitted">05.04.2010 02:51, admin </div>
        </div>
<div class="content">
<span class='print-link'></span>  </div>
</div>
</div> <!-- /node-inner, /node -->
</div>

Good morning, Powercode. I'm sufficiently tech unsmart not to know if your response is to jy problem or the other one described in this thread. Is it for me? If not ... do you have any idea how to solve this annoying problem?

You can try this, when you are creating the Poll, in Poll Settings-> "poll status" must be: ACTIVE;
if I choose "closed", the options and the "vote" button doesn't appear,

Try it

PHP Drupal Developer

I experienced the same problem.
Change your theme back to a core theme to check if the problem is caused by your theme. I changed mine to Garland, enabled the block and the poll worked at once, showing all the poll choices.
Then I placed <div class="poll"> into the page.tpl.php of my original theme. (In my case below the php of the left sidebar ...) This is probably not good practice, but it worked. The choices showed up.

No, I still have not resolved the problem of a poll vite submisison returning a random page from my site. I'll take a look at the link you suggested. Thanks.

For users that want to attach polls to nodes, rather than polls being nodes, check out pollfield.

_____________________________
http://www.arthistoryandinfo.com

I'm having trouble filtering a view to list polls that a user has already voted on? Any suggestions? What am I missing here?

Hi all
I am new with drupal an I am trying poll module
as admin I add new questions & answers and it appear to me in a block
but when I log in as an authenticated user it dose not appear!!!!!
Knowing I give him a permission to be able to vote.....
Please if any one knows the answer plz give to me
tanks......

be your self!!

Hello. I'm using standart poll module and very fond of it. But i faced the question: is there any way to make block view with list who voted and for what?

I don't want to display who voted. How can I disable that?

In Drupal 6:

Withdraw 'inspect all votes' permission from anyone but administrators in admin/user/permissions.

It might be called differently in other versions, and sometimes permissions are named quite counterintuitively, so you might need to play around with them a bit - cautiously, of course.

Hello friends.

I'm using D6 and the Poll module on my site. For the type of content Poll, I created a text box with infinite characters, with the purpose of introducing the user to the subject being discussed in the poll in progress.

Thus, my purpose is to create a view for displaying the polls on the front page of the site, featuring only the title of the poll and a part of the introductory text. For the user to vote, he would click on the title of the poll and access the same link .

Happens that the Block Poll and the Block View don't allow me to display only the title and introduction to the subject of polls.

If I set up the polls to be displayed with cut, the users only have access to titles, the outcome of the vote and the voting option. If I set up the polls to display in Standard mode, the title, the introductory text, the number of votes and an option to vote are displayed and this view is not interesting to a front page.

What can I do to display only the title and a part of the text of the poll?

Thanks in advance.

Edit: Solved with the module Pollfield

Astuto (Sergio)

Hi every body,
i am new in Drupal (just 1 week), i was install the version 7.
i need to create dynamic questionnaire(survey) that can be edit by the admin,
and i see that i can use the poll module to create my module questionnaire.
is it a good idea or you have another one?
10 q for your suggestion.

Abdallah

First of all I am surprised to see over a YEAR of unanswered questions on a CORE module. I had already got kind of used to that in the added modules, but to see how even DRUPAL STAFF or whomever is responsable (is there anyone?) seem to be even less interested in it's users than are the telephone companies is the final deception (and as such a general deception regarding "open source" as a whole). Anyway I have been wrestling all alone since I started (except for 1 exception), so I'll just continue for the moment since I have no other option anymore.
I am sorry if anyone should feel offended, but frankly, the more time I spend (loose) on Drupal (AND its community ) the more cynical I makes me. I really wasn't looking to go this way. I thought using Drupal would be enjoyable, enriching, difficult but achievable. However, the way I have been treated (or mostly the lack of being treated) and seeing how this actually is rather extended, rapidly turned my initial enthousiasm into suffering.
Even counting on no answer, I will post my problem anyway, just in case someone finds relief in knowing to not be the only one being neglected or having the same problem.

Actually the title says it all: when you are on a term page with a list of teasers of polls, the votes always go to the first poll in the list even if on line 569 of poll.module it says:
// Set form caching because we could have multiple of these forms on
// the same page, and we want to ensure the right one gets picked.

Somehow it seems it is not really working out that way. What could be wrong?

I started with Drupal in 2007 and then my life got stuck...

I'm using Drupal 7. I wanted to have poll on my site so I activated poll and even provided the right sidebar region for the block created for the poll module. But the problem is, as poll is one of content type so I am getting the poll on both content region and as well as sidebar region. Any idea, what's the problem? I'm using magazeen lite theme.

Hi Spacena, to only show the poll in the Sidebar and not on the content section of the Front Page you have to disable the setting 'Promote to Front Page'. As an administrator "click" into the 'Results' option shown at the bottom of the Poll block. This will take you into "Edit" mode. Alternatively if the Poll is showing on the Front Page then "click" on the 'Edit' tab of the Poll. Once in "Edit" mode scroll down to the 'Publishing options'. "Click" on 'Publishing options' and then "untick" the 'Promoted to Front Page' option. This will solve your problem.

Hi Folks, I would like to create multiple Poll blocks so that I can display different polls on different Pages. Is this possible? If so, how can I do it?

Did you find out how to do this?

I would like to do the same.

So were do polls go, i cannot find it in the add content??

its sooo frustrating - this should be basic basic functionality???

Hi, Is there anyway to make polls choises as links to nodes ?
Question
-link to node 1
-link to node 2
- ..

My ISP has alerted me that my bandwidth limit is being exceeded, which from the website statistics appears to be due to a high volume of traffic from mainly China, trying to access in particular /node/add/poll.

The Poll module is not enabled.

Anyone else seeing this or able to explain?

Cheers
Ron, Wellington, NZ

Hi

I'm trying to use this on Drupal Gardens. I created a page view, which shows a single random poll node, and made that view the default front page.

When viewing the default front page, auth users are sometimes presented with a voting option, as expected; and sometimes with poll results.

Anonymous users are presented seem always to be presented with poll results, which doesn't seem right.

Any thoughts on what I may be doing wrong?

+J

Is it possible that a user from your IP address already took part and voted?