November 9th, 2011, 12:51 PM
Background image based on value
I have 3 images ( Greeen.png / Red.png / Yellow.png ). i am trying to show one of these images based on the value of a form field.
<cfif #FORM_PROCESS# EQ "COMPLETED">
<cfset img src=... green.png>
<cfelseif #FORM_PROCESS# EQ "ON HOLD">
<cfset img src=... yellow.png>
<cfset img src=... Red.png>
November 9th, 2011, 01:52 PM
November 9th, 2011, 02:51 PM
The problem is it does not give the image when the condition is true..
November 9th, 2011, 05:30 PM
Either the condition is not true (dump or output the variable to confirm that it is what you think it is) or the image path is invaid.