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.

Validate 2 Records Values of a Multi-Record File

Featured Replies

Is it possible to validate the value of two records in a multi-record file?

I use the field for a valuelist in other files. The selections in the other files trigger calculations results. The calculations have two of the record values defined predefined in their calculations.

I have tried the ValueListItems( ) functions but it seems to calculate after the validation calculations.

Thanks.

Hi Mark, you could probably do this with two relationships and a script.

Make a field in your multi-record file called "Flag". For the first record, set this field to 1; for the second record, set it to 2. Now in the file from which you want to do validation, make two globals. Set the first to 1, and set the second to 2. Make a relationship from the first to the foreign field Flag and call this relationship Rel1. Make a relationship from the second to the foreign field Flag and call this relationship Rel2.

Now use a script to validate: The script steps will be

If ( Rel1::SomeField = "Whatever you want")

If ( Rel2::SomeField = "Whatever else")

<your code here>

Else

Exit Script

End If

Else

Exit Script

End If

Does this help?

Jerry

  • Author

Yes, that was my second thought aswell.

In the end I think I'll define a calcualation field as...

"Value 1" & "

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.