Go to Layout
Purpose 
Switches to the specified layout.
Format 
Go to Layout [“<layout name or layout number>”]
Options 
Specify lets you choose the target layout. For Specify, click the arrow, then you can:
 •
 •
 •
choose Layout Name by calculation, and use the Specify Calculation dialog box to create a formula whose result is a valid layout name.
 •
choose Layout Number by calculation, and use the Specify Calculation dialog box to create a formula whose result is a valid layout number. (Layout numbers correspond to the order of the layouts in the file.)
Compatibility 
 
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 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
This script step is useful when you begin a script to make sure the user starts with the correct layout displayed.
Notes
 •
 •
 •
Define an unstored calculation field with the function Get(LayoutNumber) function and place it on your layouts to verify the layout numbers of your layouts.
 •
Example 1 
Opens a new window and goes to the Summary field on the Invoice Details layout.
New Window [Style: Document]
Go to Layout ["Invoice Details"]
Go to Field [Invoices::Summary]
Example 2 
Checks which device is running the database and goes to the appropriate layout.
If [PatternCount ( Get ( ApplicationVersion ); "iPad" )]
Go to Layout ["Customers iPad"]
Else If [PatternCount ( Get ( ApplicationVersion ); "Pro" )]
Go to Layout ["Customers"]
Else
Go to Layout ["Customers iPhone"]
End If
Sort Records [Restore; No dialog]
Related topics 
New Window script step
Get(LayoutAccess) function
Get(LayoutName) function
Get(LayoutNumber) function
Get(LayoutTableName) function
Script steps reference (alphabetical list)
Script steps reference (category list)
About formulas