Script Steps Reference

Table Of Contents
Fields script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 105
Description
This script step uses the value in a specified field in the current record or uses a calculation to
replace the value in that field in every record in the current found set.
Important Replace Field Contents modifies all records in the found set. You cannot undo a Replace
Field Contents script step.
This script step can also be used to reserialize a field in every record in the current found
set.
When you use the Replace Field Contents script step, the data must be committed first
before the operation is performed, or you may get unexpected results. See Committing data
in records.
FileMaker WebDirect, server-side scripts, and Custom Web Publishing run this script step
as if the With dialog option is set to Off.
FileMaker Go does not support the With dialog: On option.
Example 1
Assigns serial numbers to all invoices in the found set.
Sort Records [Restore; With dialog: On]
Go to Record/Request/Page [First]
Replace Field Contents [With dialog: Off; Invoices::Invoice ID; Serial
numbers]
Example 2
Replaces the contents of the Customer ID field in all records in the found set with the contents of the
current record's Customer ID field.
Perform Find [Restore]
Replace Field Contents [With dialog: Off; Invoices::Customer ID; Current
Contents]