Enable or disable custom JavaScript events

This guide explains how to enable or disable custom events (also called "Hooks") associated with your Form.

> WARNING: The settings in this section require JavaScript knowledge to be used. If the inserted code does not work, the entire site functionality may be affected. Proceed with caution.


Procedure to Manage JavaScript Events

Follow these steps to enable or disable a custom JavaScript event within your Form.

1. Access the JavaScript Section

1. Open the Form you want to modify.

2. In the Form editing wizard, click on the Javascript step (usually the third or fourth item in the top menu).

2. Identify the Event

In the Javascript section, you will find a list of available events, each contained in a box (called action-box).

1. Locate the specific event you want to enable or disable (for example, an event triggered after submitting the Form).

2. Each box shows the event's Name and a brief Description.

3. Enable or Disable the Event

To the right of the event name, you will find management buttons:

  • To enable the event: Click on the Enable button (blue). The event box will become active.
  • To disable the event: Click on the Disable button (red). The box will return to inactive status.

> Note: When an event is active, you can enter custom JavaScript code in the text area below. If you disable an event containing code, that code will not run but will remain saved in the system.

4. Save Changes

1. After enabling or disabling desired events, proceed to the last step of the Form wizard.

2. Click on the save button to apply changes to the Form.