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
Solved

CFDocument - Check mark

Posted on 2013-01-14
2
546 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

791 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