Add a Call Function Action

You add a Call Function action to an action chain to call a function defined for the current page, current flow, or the application. You create and edit module functions in the JavaScript editor.

To add a Call Function action to an action chain:

  1. Open the Actions editor for the page or application.
  2. Create an action chain, or open an existing action chain to add the action in the editor.
  3. Drag Call Function from the Actions palette into the action chain.

    You can drag the action onto the Add icon ( Add icon ) in the action chain, or between existing actions in the chain. The properties pane opens when you add the action to the chain.

  4. In the Properties pane, select an existing function from the drop-down list of available functions, or click Create to create a new function.

    You can select functions that are defined for the current page, the current flow, or for the application.


    Description of action-chain-call-modulefunction.png follows
    Description of the illustration action-chain-call-modulefunction.png
  5. Click Go to Module Function to go to the JavaScript editor where you write or modify code for the function.
  6. Specify any input parameters and return type for the function in the properties pane.

    You can click Assign to map variables to the parameters. If a suitable variable does not exist, use the + icon beside the relevant node (Action Chain, Page, and so on) to create a new variable.