Reference > Functions reference > Get functions > Get(TriggerCurrentPanel)
 

Get(TriggerCurrentPanel)

Returns the index and object name of the panel to switch from when the OnPanelSwitch script trigger is activated.

Format 

Get(TriggerCurrentPanel)

Parameters 

None

Data type returned 

text

Originated in 

FileMaker Pro 12.0

Description 

Use with the Get(TriggerTargetPanel) 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 panel or slide panel. Returns 0 if the panel is invalid or if Get(TriggerCurrentPanel) 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(TriggerCurrentPanel).

Example 1 

When the tab panel or slide panel to be switched from is panel number 1, named "Category," Get(TriggerCurrentPanel) returns:

1
Category

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas