Run Script response type

Event handlers with a Run Script response type allow the use of scripts to handle the event. To define a Run Script event handler, you must specify the name of the script to run and a comma-delimited list of parameters to pass to the script. You can specify literal, property, variable, and component values as parameters.

Inside the script, access parameters by using the GetParameter() function. GetParameter(0) returns the first parameter value; GetParameter(1) returns the second parameter value; and so on.

Scripts can also access application objects and data through the scripting API.

Within a global script, the ReturnValue can be set to 0 to indicate success or a non-zero value to indicate failure.