Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7124 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

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 ).

This topic is 7124 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.