Script Steps Reference

Table Of Contents
Fields script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 76
Set Field By Name
Purpose
Replaces the entire contents of a calculated target field in the current record with the calculated
value.
Format
Set Field by Name[<calculated target field>; <value or formula>]
Options
Specify target field is a calculation to specify the field whose contents you want to replace.
<value or formula> specifies the calculation whose results will be inserted by this script step.
Compatibility
Originated in
FileMaker Pro 10.0
Description
The Set Field By Name script step lets you create a calculation to specify a field name, then change
the value of the field either literally or based on a second calculation.
Because the target field is calculated, a single Set Field By Name step can replace multiple Set
Field script steps between If conditions.
The calculated target field must return a text result.
If quotation marks are not included around the fully qualified field name, the target field name is
obtained from the named field.
If no field is specified and a field is selected in Browse mode or Find mode, that field is used.
Notes
The specified target field doesn’t have to be on the current layout.
Set Field By Name ignores validation checking.
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script Yes
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution Yes