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.

Primary Address

Featured Replies

I have a contact manager db and I only want to display one address per person. Currently I have to run a script attached to a primary checkbox looping and setting any related address to non-primary. Is there a trick to doing this using a one-to-one relationship? Or another basic way without a script?

Basically, if a person has three addresses and I set one to primary(1) all the others should be set to non-primary(0)

Store the identifier of the primary address in a field in the Contact table.

  • Author

Hey Mikhail,

This will work, and am using this technique in other places where addresses are hardcoded to display a certain type of address (ie work address in the business section)...as the primary address (ie...work, school, etc) is not hard coded I was hoping to not have to use a script to copy or set the field.

Essentially this address can be any type of address, it just has a second identifier as being the primary address. The tricky part is when adding a new address or changing the primary address I want a bullet-proof way to make sure there is only one address set as the primary (preferrably without scripting)

Edited by Guest

There can only be one if you follow the suggestion.

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.