When it is launched
The script is launched upon activating a field.Parameters
You cannot activate a different field by this script.
Respond to field activation with the On Field Control Activate event, which passes the newly active field to FlexiCapture scripts as IFieldControl.