Skip 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.

Auto set check-box field based on related records

Featured Replies

BASIC SET-UP

Table 1: Contacts

Table 2: Grant Rounds

CHALLENGE

In my contacts table I have a field to specify the contact type, such as Applicant, Grantee, Nominee, etc. It's one field with check-boxes that originate from a value list.

I'm looking to populate this field automatically based on related records - and hopefully without intense scripting.

EXAMPLE

There's a contact record for "Thomas Meyer", and there's two Grant Round records which are linked through Record ID to his contact record. In a field named "progress" (name doesn't matter) one of the records contains the string "Applicant", on the other record it's "Nominee".

This should somehow translate to checking the appropriate boxes (Applicant and Nominee) on the CONTACT record of Thomas Meyer.

Likewise, if these records are deleted, the check-boxes on the contact record should be un-checked.

Any ideas anyone?

You can make the Type field a calculation =

List ( Grant Round::Progress )

However, keep in mind that the calculation will be unstored.

  • Author

So simple!

Unstored is ok, I have very few at this point (speed) and don't need it in a relationship.

  • Author

One more small challenge.... if there's more than one related record for a certain contact type, the List() function lists it multiple times.

Applicant

Grantee

Grantee

Is there a way to reduce the listing to only showing one of a kind?

See this recent thread on the same topic:

http://fmforums.com/forum/showpost.php?post/353884/

---

BTW, if the field is formatted as checkboxes, then the duplication doesn't matter.

Edited by Guest

  • Author

Works like a charm!

I've even added a substitute to get the items listed on one line:

Substitute(

FilterValues ( ValueListItems ( Get (FileName) ; "Contact Type Static" ) ; List (T1A • Ind. Progress::Progress ));

"¶"; ", "

)

Of course I now have a "," at the very end, but that's a detail...

Thank you again for your help - you are truly expanding my FM horizon.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.