QuickPoll CFC Updated

I got some darn nice improvements sent in by Mark Mazelin. These improvements include:

  • Modified the test.cfm to actually output xhtml code, complete with the html/head/body tags.
  • Updated the test.cfm to remove my e-mail address and put in a generic one.
  • The getXXX methods are now public (where it makes sense)
  • Added the rows and cols attributes to the textarea for xhtml compliance (they are required attributes).
  • Added XHTML 1.0 Transitional compliance by adding end slashes to the input and br tags
  • Ability to send html e-mail
  • Udated error handling to highlight required questions that were not answered
  • Updated error handling to use unordered list and allow a css-styled error box
  • Added label tags to the questions/answers (which also includes adding id attributes to those the input tags)

I also added support for hidden questions and setting an initial value. The idea for hidden questions came from a commenter to my earlier post. It is useful for passing in information about the survey taker.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com