Create
An action is configured in the Actions and Conditions Editor for an event. To do this, open any event and insert a JavaScript action in the Actions and Conditions Editor using drag & drop.
![Create 1:](Images/png/4994780299__Web.png)
A JavaScript action consists of the following elements:
1 Edit Source Code: Clicking this button opens the Embedded JavaScript Editor, where the JavaScript statements can be programmed.
2 Wait mode: In this combo box you can select whether the JavaScript block is executed synchronously or asynchronously.
3 Inject context object: When selecting the checkbox a context object (ctx) is available within the JavaScript code, which can be used to provide feedback about the end of an action. The context object is evaluated via a success branch or an error branch, which can be shown or hidden by right-clicking on the action.