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.

Featured Replies

  • Newbies

Hello,

I'm new to filemaker and have a problem I can't seem to solve.

I have a fairly normalized db using numerical 'IDs' as the primary keys.

Specifically, my problem is that I have a file for info about people,i.e.,

age,sex,haircolor,etc. This is file 'tblpersons'. It has a field 'HairColor_ID'.

Then in tblhaircolors is both 'HairColor_ID' and 'HairColor'. So I define a

related value list in the layout of 'tblperson' where I need to select the hair

color from. I can get the list to display both the HairColor_ID and HairColor

such as:

1 black

2 blonde

3 red

Problem is that once selected, the field only shows the number. The only

solution I can think of is to not be so normal and not use IDs. This is NOT

what I want to have to do.

Can someone please give me a hand

What I suggest that you do is place a copy of the HairColor field (sourced from the tblhaircolors file via the relationship from the HairColor_ID field in tblpersons to the HairColor_ID field in tblpersons) on the layout immediately to the right of the HairColor_ID which has the value list attached.

Also, turn off the 'Alow entry into field' option for the copy of the HairColor field on the layout in tblpersons. This option may be accessed near the bottom of the Format Field dialog which may be summoned from the Format menu when the field is selected in layout mode.

As soon as a value is selected from the value list, you will then see the ID in the key field and the corresponding description in the HairColor beside it. The HairColor_ID field can be made quite small since it need only show the code, so that the overall effect can still be compact and space efficient. cool.gif

  • Author
  • Newbies

Thank you for your assistance. I will do what you suggested.

Hi,

Ray is correct, this is the simpliest method.

If really you don't want the "haircolorID" to show, you could also turn off "allow modification" on both fields, use the same size for both fields and place the "haircolorID" behind the "haircolor" field.

Then set the "haircolor" to be a button with a script attached :

Goto Field ("HaircolorID")

You need the Haircolor field to not be transparent.

Create an account or sign in to comment

Important Information

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

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.