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.

Simulating an enum field

Featured Replies

I'm a newbie to FMP6, so I hope I haven't missed the answer when searching!

I want a field that holds a serial number but displays as a text string. For example, the field Students:course contains an ID number relating to a record in Courses:courseID, but displays as Courses:courseName. [Hopefully my pseudo-syntax is clear? Database:fieldName]

In edit mode, Student:course should produce a pop-up list or menu of all Courses:courseName, and plug the corresponding Courses:courseID. In display mode, it should display Courses:courseName based on the courseID that's actually stored.

I know about creating dynamic value lists for formatting that would display ID and text together, but once the choice is made, the ID displays.

I'm sure this is a common problem, and I hope I've described it sufficiently to jog memories. I don't want to rely on courseName itself as a relational key, since it should be editable without breaking existing relationships.

Thanks so much,

Chap

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.