Create Poll WebPart Using SharePoint

This article explains how to create a poll WebPart using SharePoint Data View WebPart (DVWP).

Create a team site in SharePoint.

Open the site

Open the site

Click Site Actions and select More options...

option

Create a Survey WebPart named "Poll".

Create Survey WebPart

Now add questions and answers into the survey as in the following screenshots:

add Question and Answers

Click on the next question to add multiple questions.

Click on next question

Click Finish.

Now open the site in SharePoint designer to create a poll WebPart using a DataView WebPart. Then open the site and go to list and libraries.

Go to list and libraries

Go to the site pages and add a new WebPart page named "Poll.aspx".

Add a new WebPart page

poll aspx

Now edit the .Aspx file in Advanced mode.

file in advanced mode

Now insert an Empty Data View into the WebPart zone.

WebPart zone

Now select the data source created for the survey named "Poll".

Select the data source

created survey

Select the Question Field, then insert the selected field as New Item Form.

Select the Question Field

It looks like now we will merge the table cells at the top of the ribbon by selecting the table.

selecting the table

It will look like the following:

Now look like this

Remove the cancel button from the table.

Remove the cancel button

Change the Save button text to "Vote" and provide the action as submit.

submit

Change the Save button text

Now preview it in the web browser.

preview

Now it's completed.

poll

I will vote now for the poll.

vote

Now see the total responses has been counted as "1".

total responses

And here is the graphical summary.

graphical summary

Now we have a poll WebPart free of cost.