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.

Replace command in script fails

Featured Replies

I have several  scripts that I need to end with this stub:

Go to Layout ["Client Data" (Client Data)

Go to Field [Client Data::New Emergency Date; ""]

Replace Field Contents [No dialog]

The objective is to clear out the date field after processing is completed. However, I get a message stating "The previous script step, "Replace Field Contents" could not be completed because of an error". Do you wish to continue with this script?

The objective is to clear out the New Emergency Date fields after processing is complete. 

What am I doing wrong?

TIA

 

What you have quoted is erroneous. There can be no double quote in the go to field statement.

But delete that line anyway; it isn't  needed. Instead:

Go to Layout ["Client Data" (Client Data)

Replace Field Contents [ No dialog ; Client Data::New Emergency Date ; ""]

 

 

John,

Another thing to be aware of is that the Replace command works on the found set, and is not transactional. That means, you should verify that you have the correct found set before you use it and if any of the records in the found set are in use by another user, Replace will skip that record - and NOT tell you.

I recommend ANY updates of more than one record use a transactional script.

Read more about how here: https://www.geistinteractive.com/filemaker-transactions/

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.