New Project: QuickPoll

Hey, did you see my post about the reader survey? Guess what - the form was all built on the fly using a new project I released today, QuickPoll CFC. "Project" may be too strong of a word - it's really just a nice CFC. Think of it like a "lite" version of Soundings.

QuickPoll CFC lets you rapidly deploy a simple survery. How rapid? The following code is shows how my reader survey was done:

<cfset poll = createObject("component", "quickpoll")>
      
<cfset poll.setThankYouMessage("Thanks for taking the time to respond to my survey. I'll be sharing the results in a week or two once I've collected the data.")>
<cfset poll.setMailResults("ray@camdenfamily.com")>
<cfset poll.setPollName("Initial Test")>
<cfset resultsFile = expandPath("./results.csv")>
<cfset poll.setFileResults(resultsFile)>
      
<cfset poll.addQuestion("text", false, "What is your name? (Optional)")>
<cfset poll.addQuestion("text", false, "What is your email address? (Optional)")>
<cfset poll.addQuestion("multichoicesingle", true, "I visit your blog", "Multiple times a day,Once a day,Few times a week,Once a week,Very rarely")>
<cfset poll.addQuestion("multichoicesingle", true, "In general, your articles are", "Interesting and useful to my job@Interesting, but not very useful to my job@Not very interesting", "@")>
<cfset poll.addQuestion("multichoicesingle", true, "The design of this blog", "Is fine@Is great, but not terribly important to me@Isn't great, but doesn't impact my reading@Is bad, and detracts from my reading", "@")>
<cfset poll.addQuestion("multichoicesingle", true, "Compared to other ColdFusion blogs, I find this blog", "Very Useful@Somewhat Useful@Useful@Not very useful@A complete waste of time", "@")>
<cfset poll.addQuestion("textarea", false, "What does my blog need more articles on?")>
<cfset poll.addQuestion("textarea", false, "What does my blog need less articles on?")>
<cfset poll.addQuestion("textarea", false, "The thing I like best about your blog is")>
<cfset poll.addQuestion("textarea", false, "The thing I like least about your blog is")>
<cfset poll.addQuestion("textarea", false, "Any last comments?")>

The CFC allows you to generate results in email or a CSV file (or both). Enjoy.

Comments

sheesh man, you just don't stop!
# Posted By Critter | 2/21/06 1:20 PM
It's all for the wishlist man, I'm a wishlist whore. Someone could offer me a job in just whishlist items and I'd probably jump at it.
# Posted By Raymond Camden | 2/21/06 1:23 PM
just an FYI, you have the Lighthouse Pro screenshot and License on the Project page for this.
# Posted By Sean Coyne | 2/21/06 1:24 PM
Fixed. Thanks Sean.
# Posted By Raymond Camden | 2/21/06 1:30 PM
Just a usability thang about QuickPoll,(although this may sound hypocritical for those who know me) wouldn't it be useful to use {label} on your form elements, esp. the radio buttons?
# Posted By Nkosi | 2/23/06 2:43 AM
Ray - excellent and so simple to set up and use.

I am planning to use this in an ecommerce site to allow customers to provide feedback once they have completed their order.

I am going to add a new question type of hidden. This will allow me to pass in the order number to the poll and therefore the order number will be stored against the poll answer without this being visible in the poll.

Chris.
# Posted By Chris Kent | 3/1/06 5:19 PM
Nice. I was sent an update today by a user. I'll put his update in - and then I'll add hidden support as well.
# Posted By Raymond Camden | 3/1/06 5:21 PM
hi i have a blog www.rozallen.blog.co.uk iwanna to to add that survery to my blog please help me as soon as u can where to but that code
# Posted By rozallen | 4/30/06 11:46 AM
Can you add this to RIAForge?
# Posted By Sami Hoda | 4/19/07 12:32 PM
It isn't official policy, but I'm avoiding custom tags on RIAForge. Well, cfspry is a collection of tags, but this is _one_ custom tag. Sorry - CFC.

My goal is to get CFLib done and supporting CFC/Custom Tags.
# Posted By Raymond Camden | 4/19/07 12:57 PM
Good to know. Haven't found where I can download it though, thats why I wanted it "somewhere"...
# Posted By Sami Hoda | 4/19/07 1:00 PM
Ahhh. I see it on the right side.

The demo fails. But thanks!
# Posted By Sami Hoda | 4/19/07 1:14 PM