Due to recent changes in the Google API, the script described on this page may raise an error. Our software team is working on an update to resolving the problem asap. We apologize for any inconvenience.
In the meantime, if you prefer to use Google Forms to host your election you can still do so, you'll just need to tally the votes by hand or by transferring the votes to our STAR Elections Calculator google sheet.
STAR Voting now has it's own web app for running simple and functional polls. Give it a try on star.vote. More features are being added all the time.
With Google Forms it's also fairly easy to set up and run your own STAR Voting elections with additional security features, by copying and pasting in a simple script.
This post is a step-by-step guide that shows how to do that.
How to create a STAR Voting election on Google Forms
STEP 1: Create a new Google Form for your election
Go to Google Forms and create a new form.
STEP 2: Name your election and paste in the voter instructions
NOTE: Google Forms only supports a single STAR Voting race per form created. If you want to hold an election with multiple races you'll need to create multiple forms. This and other frequently requested features will be available from STAR Elections' own online tool at star.vote soon.
STEP 3: Choose the "Linear Scale" question type for the first entry and set up the 0-5 scale
- Write in the name of your first candidate.
- The default question type is "Multiple Choice" but you'll want to change that to the "Linear Scale" option for each question.
- Set the scale to 0 to 5. Since Google Forms defaults to 1 as the starting value, you'll need to set it manually to 0.
- Label the scale:
- 0 "Worst"
- 5 "Best"
STEP 4: Duplicate your first entry to create an entry for each candidate
- Click on the "Duplicate" icon at the bottom of the first entry.
- Type in the name of your next candidate.
- Duplicate your entry again and repeat until all candidates for your election are listed.
STEP 5: Open the Script Editor
- From the menu at the top of your screen click on "More" (the vertical "..." in the upper left.)
- Select the "< > Script Editor..." option.
- The script editor will open in another tab. This is where you'll put in the custom code to turn your poll into a STAR Voting election.
STEP 6: Replace all the code with the 'STAR Voting Calculator' script
- Copy the following code and paste it over the full contents of the form's script.
- When you're done it will be 122 lines long and will look like this:
- Choose "Save" from the File menu. Name you election script to match your election
STEP 8: Set your election settings
- Go back to the tab with your election and your candidate entries and click the "Settings" icon in the top right corner.
- For secure elections set the form to collect email addresses, always give vote receipts, and limit voters to one response per email. If desired you can allow voters to edit their vote (up until the poll closes,) or to be able to view the election results as they come in.
STEP 9: Do a test run before sending out your ballots
We recommend sending yourself a ballot, casting a test vote, and taking a look at the preliminary results if you haven't hosted a STAR election with Google Forms before:
- Go back to the tab with your election and your candidate entries and click the "Send" button in the top right corner.
- Select "Send via email" and put in your own email address.
- Add in your message to voters. Ask people to vote, let them know when the election deadline will be, and include any other information that you'd like to have at the top of the email with the ballot or ballot link.
- Copy and save the message text somewhere convenient so you won't have to retype it when you send out the ballots for real.
- Hit send.
- Go to your inbox, open the email, check that everything looks the way you want it to, and cast a test vote.
Once you've voted, your vote will be listed in the preliminary election results. If you aren't eligible to vote in the election you'll want to delete your test ballot before the election goes live:
- Go back to the tab with your election.
- At the top of the page select "Responses."
- Then click on the green Google Sheets icon near the top right of the page.
- Click "create new spreadsheet," and then click "Create."
- Delete your vote if desired.
STEP 10: Send out the ballots!
You can use email to send the ballots out to each eligible voter on your list, you can distribute a link to the ballot form, or you can embed the election form into your website.
- Go back to the tab with your election itself and your candidate entries and click the "Send" button in the top right corner.
- Paste your eligible voter email list in the "Email" section.
- Select the options you prefer, draft or paste in your message. (Your message should ask voters to vote, let them know the deadline, and inform them of any other relevant information they should know before participating in the election.)
- Hit "Send."
STEP 11: Run the election
You'll need to close and re-open the form for the script option to show up in the Google Form. You can find the form easily in the "Recent" files section of your google drive.
- Close all windows or tabs relating to your election.
- Go to Google Forms home.
- Select your election's thumbnail from the list and click to open it.
- At the top of the screen, click on the puzzle piece icon and then select your election's script editor.
- Click "Run Election"
- Google will ask you to authorize the script to run on Google Forms and Google Spreadsheets. Go ahead and allow it.
- The STAR Voting Calculator script creates a Google Sheet spreadsheet with the results of the election. You can find it most easily in the "Recent" files section in your Google Drive.
- Open the spreadsheet and see the results!