January 25, 200223 yr From a newbie, I would like to set an image to load if a certain combination of letters is present in a field. For example, a field in one layout has a CL, DL etc. in it. When I press a button a script is activated. Then, I want an image to load in a container field bases on the letters and show the user the new layout including the image. Could you help me get started with the script? Thanks in advance.
January 25, 200223 yr There are two basic ways to make an image appear in a container field (without additional plug-ins): 1) make the field a calculation field with the type container and use the detection of the letters in another field to "switch on" the image. 2) Use a Set Field () command in a script to set of clear the display container field with data from another container field. 1) DisplayContainer (calculation,container) = If(PatterCount(Field, "DL") > 0, SourceContainer, "") where SourceContainer is a container field which contains the image you wish to "load" and Field is the field you are testing for "DL". 2) under script control If (PatterCount(Field, "DL") > 0) Set Field(DisplayContainer, Source Container) else Set Field(DisplayContainer, "") End If -bd
Create an account or sign in to comment