Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Show image on browse mode

Featured Replies

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

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.

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!

  • Author

Thanks i will give this a shot. Will give an update on how it goes

  • Author

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

  • Author

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.