1 Reply Latest reply on Mar 22, 2011 9:54 AM by philmodjunk

    Getting an image from one field to another

    kilbot

      Title

      Getting an image from one field to another

      Post

      Okay I made a radio button set RED, YELLOW, GREEN

      I made 3 text fields RED, YELLOW, GREEN

      I placed images into the 3 fields

      I then started writing a case statement based on what radio button was checked to get the corresponding field with image. I can get the field but not the image. How do you get the image?

      Case ( warning = "RED" ; RED_MARKER;

      warning = "YELLOW"; YELLOW_MARKER;

      warning = "GREEN"; GREEN MARKER)

      Do they need to be containers instead of text fields? do I need to use the GetField function?

        • 1. Re: Getting an image from one field to another
          philmodjunk

          Red_Marker, Yellow_Marker and Green_Marker would indeed need to be container fields where you've inserted the desired graphic. This graphic can be a rectangle of the desired color created on a layout in layout mode and then copied to the clipboard and then pasted into the container field after returning to browse mode.

          The return type of your calculation would also need to be of type container.

          This is how we did it before we had conditional formatting.

          With conditional formatting, you no longer need to use this approach.

          You can simply stack three conditional format expressions:

          warning = "RED"
          warning = "YELLOW"
          warning = "GREEN"

          And specify a Red fill color for the field for the first expression, a yellow color for the second and a green color for the third.