Functions in
Scripts configured as Client Callable Functions can be called from the browser using the Client-Server API. These functions can take a parameter and return a value.
Client Callable Functions are configured in the Events tab of a
Form's
Form Properties.
A function in a Client Callable Function Script can be called using the Client-Server API's executeFunction
function, for example, $eb.executeFunction("myFunction")
. This will execute the function named myFunction.
The following optional arguments can also be specified:
- parameter pass some data to the function being executed.
- autorefresh instructs the AJAX mechanism to refresh the Page with any changes made by the executed function.
- fullSubmit validates and updates Field values before the function is executed.
- failureCallback specify an error handling function to be called if the function cannot be executed.