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

Get Image

Featured Replies

i am looking to make an image show up when select an item type.

I have an image field

and i have a model# field.

I was wondering how i would make a script that would grab an image from a folder named the same as its model number so when you type in the model number the image shows up.

Anyone know how this is done? I would love some help.

Thanks in advance

mattyj

  • Newbies

Hi Mattyj,

Your Images should be stored in a FMtable (or separate file)called items f.i containing at least 2 fields

ReferenceID number autoenter incrementing

Image Container

You need to create following additional elements in order to display the referenced Image.

1. Create a new table called Globals with fields

gSelectedRef global number

gEnteredImage Calculation

2.In Database Setup Link Globals->gSelectedRef to item->ReferenceID call the relation Selected

3.Create a new Layout based on Globals TO

Position the gSelectedRef field and the gEnteredImage fields in this Layout

4. Now define gEnteredImage Calculation to be equal to Selected::Image.

Now whenever You enter a referenceID into gSelectedRef the related image will show up

Remark :P It could be advisable to format the gSelectedRef field as a Popup list showing all available ReferenceID on File avoiding thus the typing errors.

Do not hesitate to contact me if this was unclear or You needed additional help.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.