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
sheesh man, you just don't stop!
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.
just an FYI, you have the Lighthouse Pro screenshot and License on the Project page for this.
Fixed. Thanks Sean.
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?
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.
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.
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
Can you add this to RIAForge?
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.
Good to know. Haven't found where I can download it though, thats why I wanted it "somewhere"...
http://ray.camdenfamily.com...
Ahhh. I see it on the right side.
The demo fails. But thanks!
Hi Ray, is QuickPollCFC still alive?
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.
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.
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.
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!
Guess I'm *really* blind, but I don't see it anywhere. I was really hoping to try it out.
Did you follow the link 2 comments above?
I did. I can see the descriptor, but is that it? I thought I saw something about a .zip in a comment somewhere.
Ah, the dowload link isn't there. You can find it here:
http://www.coldfusionjedi.c...
Thanks, dude! I thought I was losing my mind. :-D