ProfitSuite/Contentivity User GuideSearch:  
<Back | Table of Contents
Poll

Summary
This Widget is used create an interactive poll for your site's users to vote on a particular subject.

The Poll widget comes with a sample Poll, called "color poll", that you can copy and use on your site. See Poll Items for instructions on adding and removing.

Changing of the template code requires knowledge of HTML.

Properties

Name
This is the name by which the Widget can be identified in the Widget Panel or other functions which list Widgets. It is not displayed on the page.

Poll Question
Enter the question or subject of the poll.

Poll Items
Your users will vote on the items. Enter text in the field and click on the + sign to add the item to the list. To sort the items, highlight the item and click on the up or down arrow. To delete and item, highlight it and then click on the X button.

Poll Question Style
Defines the Style used for the question.

Poll Radio Style
Defines the Style used for the radio button that is selected by the user.

Poll Item Style
Defines the Style of the text of each item.

Select Vote Graphic
You can assign a graphic as the vote button from the Asset Browser by clicking this  link.

Use Button Text Below?
Check this to use a standard form button instead of a graphic.

Button Text
Enter the text you would like the vote button to read if not using a graphic.

Select Bar Graphic
The Poll Widget uses images for the bars and stretches them to match the voting percentages.

Max Width
This specifies the maximum width of bar graphics in pixels.

Max Height
This specifies the maximum height of bar graphics in pixels.

Bar Orientation
Select vertical or horizontal to change how the bar graphics are oriented.

Poll Template
Enter HTML to format the overall Poll Widget. Variables you must use in this field are:

  • %%POLLQUESTION%%
    Displays the Poll Question.

  • %%POLLITEMS%%
    Displays the Poll Items according to the Poll Item Template.

  • %%POLLVOTE%%
    Displays the Vote Button.

Poll Item Template
Controls how each item is displayed. Use the following variables for each item:

  • %%POLLRADIO%%
    Displays the Poll Item radio button.

  • %%POLLITEM%%
    Displays the Poll Item.

Results Template
The Results Template works in the same fashion as the Poll Template.

  • %%POLLQUESTION%%
    Displays the Poll Question.

  • %%POLLITEMS%%
    Displays the Poll Items according to the Poll Item Template.

Item Results Template
Controls how each item is displayed upon voting. Use the following variables for each item:

  • %%POLLITEM%%
    Displays the Poll Item.

  • %%POLLRESULT%%
    Displays the Result Bar Graphic sized to the appropriate proportion.

  • %%POLLPERCENT%%
    Displays the percentage of votes for this item.

  • %%POLLCOUNT%%
    Displays the number of votes tallied for this item.

 

Copyright © 2013 Mogistic, LLC. Last Updated: 12-2008