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.

Making a record unique to portal?

Featured Replies

I've looked around a bit and not found what I'm looking for, so here goes...

For each Contact record I can have several phone numbers. The Phones are in their own related table and shown in a portal window on the Contact layout.

What I want to do is allow one and only one of the Phone numbers for each Contact to be marked as "Main", thus making it unique in that portal for that Contact record.

If I were doing this in MySQL I'd index the combination of "Main" and "ID", making the combination unique, but I don't see how to do this in FMP. I tried working it by creating a new field that combined those two fields, but I can't make a calculation unique (or can't see how to).

Any suggestions, solutions, ideas?

Thanks,

Nelson

Why not store the primary key for the related phone record in a field in the contact record. You can then have a TO from Contact::fkMainPhoneID to pkPhoneID.

On the portal itself where it displays all the related phone numbers for the contact, you can have the row a button where it basically sets the Contact::fkMainPhoneID field with current portal row record's PhoneID.

Seems very similar to this.

  • Author

John and Comment,

That was it exactly. Comment, the example you pointed to worked perfectly to accomplish what I was after.

Thanks

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.