You are on the right track. That is the correct script trigger and they renamed it as sliding a slider to a new panel also trips this same trigger.
The relevant functions to use in a script performed by this trigger are:
Get(TriggerCurrentPanel)--returns the number and object name of the panel FROM which the user is switching
Get(TriggerTargetPanel)--returns the number and object name of the panel TO which the user is switching
Both are documented in FileMaker Help. You can either use the Inspector's name box to assign an object name to each panel or you can simply check the number value returned. (The functions return a list of panel number and object name, so you can use getValue to extract either the number or the name form the text returned by these functions.)
Thanks for the response. I did read exactly what you have stated, but I guess the issue is how do incorporate the get Value In the script itself. I have been trying - If (Get(TriggerTargetPanel) = ??? but I need to get the value.
Referring to the help article on this function:
When the tab or slide panel to be switched to is number 2, named “Products,” Get(TriggerTargetPanel) returns:
GetValue ( Get(TriggerTargetPanel) ; 1 ) would return the value 2--the number of the new panel.
GetValue ( Get(TriggerTargetPanel) ; 2 ) would return the value "Products"--the object name of the new panel.