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.

Archived Comments

Comment 1 by Critter posted on 2/22/2006 at 12:20 AM

sheesh man, you just don't stop!

Comment 2 by Raymond Camden posted on 2/22/2006 at 12:23 AM

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.

Comment 3 by Sean Coyne posted on 2/22/2006 at 12:24 AM

just an FYI, you have the Lighthouse Pro screenshot and License on the Project page for this.

Comment 4 by Raymond Camden posted on 2/22/2006 at 12:30 AM

Fixed. Thanks Sean.

Comment 5 by Nkosi posted on 2/23/2006 at 1:43 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?

Comment 6 by Chris Kent posted on 3/2/2006 at 4:19 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.

Comment 7 by Raymond Camden posted on 3/2/2006 at 4:21 AM

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.

Comment 8 by rozallen posted on 4/30/2006 at 8:46 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

Comment 9 by Sami Hoda posted on 4/19/2007 at 9:32 PM

Can you add this to RIAForge?

Comment 10 by Raymond Camden posted on 4/19/2007 at 9:57 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.

Comment 11 by Sami Hoda posted on 4/19/2007 at 10:00 PM

Good to know. Haven't found where I can download it though, thats why I wanted it "somewhere"...

Comment 12 by Raymond Camden posted on 4/19/2007 at 10:05 PM
Comment 13 by Sami Hoda posted on 4/19/2007 at 10:14 PM

Ahhh. I see it on the right side.

The demo fails. But thanks!

Comment 14 by Sebastiaan posted on 12/24/2008 at 3:22 PM

Hi Ray, is QuickPollCFC still alive?

Comment 15 by Raymond Camden posted on 12/27/2008 at 12:30 AM

Define "alive" :) It was built to allow for super quick polling and therefore doesn't really need to do much more. I haven't really thought about it in a while.

Comment 16 by Sebastiaan posted on 12/27/2008 at 5:06 AM

I was thinking if yes, where do I download it? I've been playing around with Soundings, but need to translate all the standard stuff into Dutch. Before I go there I was wondering if QuickPollCFC would be better suited for my needs! But I can't seem to find anyplace to download it - I only see the FlashPaper API description when visiting your pages for the QuickPollCFC project.

Comment 17 by Raymond Camden posted on 12/27/2008 at 6:19 AM

You can download it from my projects page:

http://www.coldfusionjedi.c...

Oh, I see you found the API descriptor. Look on the left hand side. Not terribly obvious, I know.

Comment 18 by Sebastiaan posted on 12/27/2008 at 5:48 PM

I must be blind :-)

I was so hung up on the contents of the page and that the original link to the download in the comments gave an error (Page Not Found - 404), that it never occured to me to look to the left ;-)

Got it now, thanx!

Comment 19 by Tom posted on 8/25/2009 at 11:02 PM

Guess I'm *really* blind, but I don't see it anywhere. I was really hoping to try it out.

Comment 20 by Raymond Camden posted on 8/26/2009 at 6:23 PM

Did you follow the link 2 comments above?

Comment 21 by Tom posted on 8/26/2009 at 7:01 PM

I did. I can see the descriptor, but is that it? I thought I saw something about a .zip in a comment somewhere.

Comment 22 by Raymond Camden posted on 8/26/2009 at 7:06 PM

Ah, the dowload link isn't there. You can find it here:

http://www.coldfusionjedi.c...

Comment 23 by Tom posted on 8/26/2009 at 7:21 PM

Thanks, dude! I thought I was losing my mind. :-D