ngwaltne Posted January 25, 2002 Posted January 25, 2002 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.
LiveOak Posted January 25, 2002 Posted January 25, 2002 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
Recommended Posts
This topic is 8445 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now