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

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

Recommended Posts

Posted

Hi,

I am wanting to show an image on the browse mode based on some sort of selection from a field box.

Example:

radio button :) male , female, unknown

if the user selects male i want it to show a male symbol on the browse view mode.

I have attached a couple of images to help better understand what i want to accomplish.

with-icon.png

without-icon.png

Posted

Hi

1) Create a global repeating container field ( gIcons ) with 2 repeatitions

2) Create a calculation field ( cIcons ), result container, with this calc:

Case(

radio button = "male" ; gIcons ;

radio button = "female" ; gIcons[2]

)

3) In Layout Mode place the cIcons field where you want to see the Symbol

4) In Browse Mode insert the Male symbol into gIcons[1] and the Female Symbol into gIcons[2]

Now, every time you choose something with your radio buttons, the pertinent symbol will appear into cIcons.

Posted

Take a look at a couple of the included file templates that come with Filemaker and how they utilize the hilite fields HiliteName and HiliteLibrary. Basically here's how it works:

Create a global container field ([color:gray]ImageLibrary) with enough repetitions to hold all the images you need. Insert your images into those repetitions.

Next create another container field ([color:gray]ImageDisplay) that will actually display your images based on your calculation. The calculation will look something like this:

[color:gray]//Using enough calcs to cover all your possible values//

[color:gray]Case([RadioButtonField] = [value1]; GetRepetition(ImageLibrary; 1);

[RadioButtonField] = [value2]; GetRepetition(ImageLibrary; 2); "")

Hope that helps!

Posted

Ok so i tried both solutions but i can not figure out how to put my images in global fields. If i put one in then put another the first goes aways

Posted

Never-mind i got it. I think i was entering in the wrong area i was setting it up from the table view instead of File > Manage > Databases > Fields

But just in case that is where i was suppose to do it right

This topic is 5306 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.