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.

script is not populating new record

Featured Replies

  • Newbies

hello all,

i am using FMP 8.5 advanced, windows xp.

i have a REAL problem. i am on a job in houston, texas where i want to create a new record and copy the data from my edit area and populate the fields in the new record.

i have created two dummy db's, dummy1.fp7' and 'dummy2.fp7' to demonstrate the problem and i have attached them for review in 'dummy1.zip'.

there is nothing malicious about these.

when i create a new record and try to read a field from the first Db and paste it into the new record via a script, nothing happens.

i have tried 'Set Field', 'Copy' followed by 'Paste' and i have used the script debugger to view the fields all to no avail.

if i do an 'Insert Text' it works fine.

I am stumped. i have made a script in dummy2 called 'makeNewRecAndInsertData' which tries to populate the field and it does not work.

can any one please help?

this is a serious problem.

dummy1.zip

The script is working just the way you wrote it.

When a new record is created, the index2 field is blank. You don't set it to anything in your script, so there's no related record in dummy1 to pull from.

I also don't know why your Go to Layout script step is AFTER your New Record step or why you're sorting the records.

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.