Solved

CFDocument - Check mark

Posted on 2013-01-14
2
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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