#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    60
    Rep Power
    4

    Background image based on value


    Hi guys,

    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>
    <cfelse>

    <cfset img src=... Red.png>

    </cfif>
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,286
    Rep Power
    968
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    60
    Rep Power
    4
    Hi kitless,
    The problem is it does not give the image when the condition is true..
  6. #4
  7. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,286
    Rep Power
    968
    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.

IMN logo majestic logo threadwatch logo seochat tools logo