
Anything you type into this field will default to quoted text, unless FileMaker detects that you have entered a specific field or function.

Adding a script parameter is done by simply typing into the “Optional script parameter” field at the bottom of the Specify Script dialog. This is done via the “Specify Script” dialog available throughout FileMaker. Single Script ParameterįileMaker provides one primary method to pass script parameters into a script. This blog post borrows heavily from Makah Encarnacao’s FileMaker DevCon 2018 presentation, so be sure to check out her video, slides and example file for more details. There are many ways to format and pass scripts parameters in FileMaker and in this blog post we are going to start from the beginning and work our way up to the various ways we can pass multiple script parameters.


By passing script parameters you can use a single script to create a Sales Order from various contexts without having to write and maintain a separate script. Maybe you need to know the corresponding customer for this order, or maybe you need to know shipping address. Often there are similar requirements when creating a Sales Order from each of these contexts.

You can create a Sales Order from a few different contexts in your solution, such as from a Customer record, from a previous Sales Order, or from a cancelled Order. For example, you can create a Sales Order record in your FileMaker solution. Numerous benefits include writing fewer scripts, increased code reusability, and improved coding organization.īy designing your scripts to pass parameters, you can use a single script with logic branching (i.e., IF, ELSE IF, ELSE) to perform multiple actions within your FileMaker solution. Script parameters are one of many tools that all FileMaker developers should learn to utilize when developing custom FileMaker applications.
