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.

Related record script not working

Featured Replies

Hi,

I wrote a script for a button that is intended to create a related record in a new table. The logic of the script is supposed to be:

1. If there is no related record in "Monitoring Data Entry", then create one and automatically populate three fields.

2. If there is a related record, go to it.

It works most of the time, but for some reason, some records end up with two related records, and usually the second does not have the correct values for the fields I am trying to auto-populate (mdeNestID and mdeSpecies). I have attached the script as a jpeg. Any advice on why it does not quite work correctly is much appreciated!

Script.jpg

Edited by Guest

We also need to see the relationship diagram for "Monitoring Data Entry"

  • Author

Well that makes sense - sorry I didn't include it originally. "Thesis Data" is where the button is located. "Monitoring Data Entry" is where a new record is created or an existing record is pulled up when the button is pressed. Each record in "Monitoring Data Entry" is basically a header that sits over a portal to "Monitoring Data."

In the relationship graph, it goes:

ThesisData->MonData->MonDataEntry

I've attached a jpeg for the ThesisData->MonData relationship, and one for the MonData->MonDataEntry relationship.

MonData_MonDataEntry.jpg

Thesis_MonData.jpg

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.