May 25, 200520 yr this is really rather embarassing..but I can't figure out how to have a graphic appear in a container based on a user's selection in a pop up menu.. for instance if a user selects one...a checkbox graphic appears in the container field next to the popup field...etc..etc... any help is mucho appreciated...I know this is a simple one...but I'm missing something...because I get no love from my current container...
May 25, 200520 yr use a calculation...with a case statement...with the result of the calc a container...the result choices will need to be separate container fields to hold the graphics...
May 25, 200520 yr Author thanks for the reply.. do you have an example by any chance? I'm not sure how to go about structuring that script.. I need multiple containers for the graphics? I was hoping I could have the result of the popupmenu appear in one container...to show a red X for no and a green check mark for yes...etc..etc.. I think I'm a little confused as to how I would implement your suggestion..sorry to be so obtuse...I'm a web programmer..if this was PHP..I'd be all over it.
May 25, 200520 yr You do not necessarily need multiple global container fields to hold the graphics. You can use a single global container defined to hold multiple repetitions, then put your global on a layout, format it to display all repetitions, and then copy/paste a graphic into each repetition in Browse Mode. Your calculated container field will then look something like Case( popupField = "this", globalcontainerField, popupField = "that", GetRepetition( globalcontainerField, 2 ), popupField = "the other", GetRepetition( globalcontainerField, 3 ) ) if you want, for example, the first repetition to be displayed when popupField contains "this", the second repetition to be displayed when popupField contains "that", etc. In version 7, you can also use the globalcontainerField[2] syntax in place of GetRepetition( globalcontainerField; 2 ).
Create an account or sign in to comment