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.

Unique Value among Related Records

Featured Replies

I have a contacts database that includes a separate table for addresses. This allows me to have multiple addresses per client. The addresses are all related by the contact's unique ID#. I have also included a simple "flag" checkbox to mark which address is the contact's preferred "default" address.

However, I want that "default address" flag to be a unique value to all related records for that contact. So, they would only be able to have one address flagged at any one time. The validation options for making the flag "unique" apply to the whole table, not just the related records for that contact. So, if I use unique validation on the default flag, only one record in the database would be able to be flagged.

Two questions:

1) How do I set it up so that only one record (among a set of records with the same ID#) can be flagged with the Default Address checkbox?

2) If that is possible, is there also a way to make it behave, such that, if I flag one record for a contact as "default", that if that customer already has another address flagged as his/her "default", that it will automatically unflag that record and apply the flag only to the current record being flagged?

Let me know if this brings up further questions.

Thanks in advance for any information.

Scott

I think a simple solution would be to have the "flag" in the contact record, for example by storing the selected AddressID.

  • Author

Thanks! This worked beautifully. I created a field in the contact database called "DefaultAddress" and another field in the addresses database called "DefaultAddressID" (a calculated field that created a unique ID based on client ID and the get record ID function). Now, when I click on the default address flag, it stores the "DefaultAddressID" in the contact record.

Again, thanks for the help!

Scott

I would make this simpler by having an auto-entered serial number AddressID in the addresses database.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.