Get(TriggerTargetPanel)
Purpose 
Returns the index and the object name of the target tab panel or slide panel (the panel to be switched to) when the OnPanelSwitch script trigger is activated.
Format 
Get(TriggerTargetPanel)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 12.0
Description 
Use with the Get(TriggerCurrentPanel) function. Returns an index value, starting from 1, when running a script triggered by the OnPanelSwitch script trigger, and the object name assigned to the tab or slide panel. Returns 0 if the panel is invalid or if Get(TriggerTargetPanel) is not used with the OnPanelSwitch script trigger.
You can use the GetValue function to extract the value you want to use from the index value returned by Get(TriggerTargetPanel).
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Examples 
When the tab or slide panel to be switched to is number 2, named “Products,” Get(TriggerTargetPanel) returns:
2
Products
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas