Toggle menu

helper.invokeCustomFn(customFnName [, arg1, arg2 ...])

Invokes a custom function defined within the 'custom code' property or registered using createCustomFn.

Custom JavaScript functions can be included via the Custom Code property in the Form Settings menu or created using .createCustomFn.

The function must exist with the name specified. Any arguments needed by the function should be supplied after the function name.

Any value returned by the invoked function will be returned by this function.

Arguments

ArgumentTypeDescription
customFnNameString, requiredThe name of the function to invoke
arg1Any, optionalAdditional function parameter
arg2 Any, optionalAdditional function parameter
argNAny, optionalAdditional function parameters

Returns

Any.

Example

See .createCustomFn for an example.

Last modified on 22 February 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon