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.

Get field data from a specific related record

Featured Replies

  • Newbies

I have a contact info database based on family records, with the main Families table having a relationship to a second table called Individuals. In my layout, I've added two portals to the Individuals... one for adults, the other for children. There is a script trigger on each portal's "First Name" field that assigns that Individual's record as being either an adult or a child.

What I would like to do is calculate the Family name from the adults' last names. For example, if I enter one person, John Doe in the adult's Individuals portal, and his wife Jane Doe, I want the Family Name field to automatically return as "Doe". However, if John Doe is married to Jane Smith, I want the Family Name to return as Doe/Smith. I've figured out how to calculate so that the first two related records entered populate fields in the Families table called Last Name 1 and Last Name 2 respectively, and the Family Name field calculates correctly from those. The problem is that if a child is entered before both adults, one of the Last Name fields are populated from the child.

I hope my issue makes sense. It feels like I'm close, but I must be over thinking or just unaware of a simple formula to enter. Thoughts?

Try it this way:

In the Individuals table, define a calculation field cAdultlastName =

Case ( IsAdult ; LastName )

In the Families table, calculate =

Substitute ( List ( Individuals::cAdultlastName ) ; ¶ ; "/" )

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.