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.

copying field contents into new record

Featured Replies

I have a script that I am using to create new records in a specific table, Injury. One of the fields in this table is a key linking the new injury record to the currently selected record in another table, Preferences.

The overall process is this:

1. Go to Injury layout.

2. create new record.

3. Insert the contents of the ID field from the Preferences table into the appropriate ID field in the Injury table.

4. Return to the original layout.

5. Go to the first field for data entry.

Problem is, I can't get the script to copy the key value from the first table and paste it into the appropriate field in the new record. I've tried everything I can think of - Set Field, Insert Calculated Result, even a Copy/Paste set of steps. I get nothing.

What am I doing wrong?

Try setting a variable with the value in your Preferences table, then use a Set Field command to set the ID field in the Injury Table. Depending on how your interface is setup you may need to use s global variable or global field.

  • Author

John,

Thanks for the quick response. One question: when you say "set a variable", do you mean in the script, or somewhere else? Not sure how to set variables in FileMaker.

Yes, in your script, there is a Set Variable step.

  • Author

John,

That got it. Used the Set Variable script step before switching layouts, and the Set Field step set it appropriately.

Thanks so much. You cured a ton of frustration.

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.