OnTabSwitchTriggers a script to run when a tab control changes panels. This can happen, for example, when the focus in a tab control moves to a different panel or when a user clicks an inactive tab in a tab control.FileMaker Pro 12.0OnTabSwitch applies to the entire tab control and not to individual panels. To control switching to particular tab panels, use the Get(TriggerCurrentTabPanel) and Get(TriggerTargetTabPanel) functions.