Reference > Script steps reference > Navigation script steps > Go to Object
 
Go to Object
Purpose 
Moves to the specified object on the current layout.
See also 
Format 
Go to Object [Object Name: "<object name>"; Repetition: <formula>]
Options 
Object Name is the named object to make active on the current layout. See Naming objects.
Repetition (optional) lets you choose a field's repetition to go to. Otherwise defaults to 1. This option is ignored if the object is not a field.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
FileMaker WebDirect 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 8.5
Description 
This script step uses an object name to identify an object, so you must assign a unique object name to each object on a layout that you want to go to.
Notes 
If this script step specifies an object on a tab panel or a slide panel that is not the front-most panel, the specified object is selected and the panel it is on moves to the front of the panel control.
If the script step specifies a field on a popover, the popover opens.
Example 1 
Navigates to a text field named "First Name".
Go to Object [Object Name: "First Name"]
Example 2 
Navigates between different tabs of a tab control.
If [Invoices::Status = "Paid"]
Go to Object [Object Name: "Invoice Statement Tab"]
Else If [Invoices::Status = "Unpaid"]
Go to Object [Object Name: "Invoice Payment Tab"]
End If
Example 3 
Navigates to either the "Paid" tab or the "Unpaid" tab in a tab control depending on the value of Invoices::Status.
Go to Layout ["Invoice Details"]
Go to Object [Object Name: Invoices::Status]
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)
Naming objects
Defining repeating fields