Execute JavaScript

If JavaScript actions have been enabled from the Admin console's Client Security options, users can opt to execute JavaScript in the browser. To create a JavaScript action, write an expression in PQL in the text editor; the output when the action is selected will be JavaScript. You can incorporate the Generative PQL Function into your statement to have results returned by the underlying LLM.

Configure a JavaScript Click Action

  1. Start by selecting Execute JavaScript from the Action Type list.
  2. Type your JavaScript into the script editor.
  3. Add PQL functions to your script by dragging them from the Functions library.
  4. Click Validate to test your script.
  5. Click Apply to save the jump action.