back to blog list

Live Demo: Vote for Golf!

Problem: Need to collect votes and show results to users.

Situation: Users will be notified of voting choices through email. Easiest voting process for user is to click button of desired choice directly in email to submit their vote.

Overall Design: Buttons in email will be links to a webpage. The links will have a query string parameter that matches their desired choice. When webpage is loading JavaScript will get the query string parameter ("choice") value and store it in some data store. We can query the data store to get the votes and draw a graphical representation of the data.

Graphics: Pie chart from amCharts

App flow: Visio diagram

Data store: SharePoint list ("BachPartySurvey"):
SharePoint list

HTML/JS code: index.html

                 

 

C# code: WCF service