Solved

CFDocument - Check mark

Posted on 2013-01-14
2
533 Views
Last Modified: 2013-01-15
My database has check boxes in it. When an item is checked in a form, it passes through to the database as a checkbox.
I output some results to a cfdocument and if the field is checked, the number 1 shows up instead of a check mark. An idea how i can get this to show as a checkbox as opposed to the number 1 or 0?
0
Comment
Question by:bcrosby007
2 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 500 total points
ID: 38778494
Find yourself (or make) an image of a box for unchecked and one with a check mark in it.

Then simply

<cfif myquery.itemYN eq 1>
<img src="checked.gif">
<cfelse>
<img src="unchecked.gif">
</cfif>
0
 
LVL 7

Author Closing Comment

by:bcrosby007
ID: 38778672
Perfect. Thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now