Santa Clara University

Web Publishing

Polls

Use this element to add a simple, multiple-choice poll to a Commonspot page.

Creating a Poll

The poll's question, choices, and formatting are set through custom script parameters. There are just two required parameters; "question" and "choices". In the example below, the two required parameters are set as:

question=How did you find this page?
choices=Just browsing;In the Web Publishing blog;Russ told me about it;Another Commonspot user mentioned it;Through a search engine
 

Poll

How did you find this page?
  • Just browsing
  • In the Web Publishing blog
  • Russ told me about it
  • Another Commonspot user mentioned it
  • Through a search engine

 
Optional Settings

The Poll element allows you to modify the heading text, limit the number of choices a user is allowed to vote for, set the text in the submit button, and set the color style for the element. The example in the right column uses the following required and optional settings.

question=How do you get to school or work?
choices=Car;Train;Bus;Bike;Motorcycle;Walk
title=Getting there
limit=6
button=GO
style=gold

If you set the limit to a number higher than 1 (the default is "1"), the form will use checkboxes instead of radio buttons, allowing users to make more than one choice in your poll.

Managing your Poll

Once you've created your poll, you'll be able to adjust the vote numbers and change the poll question and choices by viewing the page in Author mode.

Getting there

How do you get to school or work?

Vote for up to 6

  • Car
  • Train
  • Bus
  • Bike
  • Motorcycle
  • Walk

Printer-friendly format