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

Get(TriggerTargetPanel)

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

Format 

Get ( TriggerTargetPanel )

Parameters 

None

Data type returned 

text

Originated in version 

12.0

Description 

Use with the Get(TriggerCurrentPanel) function. When running a script triggered by the OnPanelSwitch script trigger, returns a list of values (see ValueCount function) that consists of:

an index value, starting from 1

the object name assigned to the tab panel or slide panel (see Naming objects)

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).

Example 1 

When the tab panel 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