# Add Javascript Libraries

## Importing Libraries&#x20;

To import a library into your form:

1. Open the form settings and navigate to the **Form Properties** tab.
2. Scroll down until you see the **Custom Head Code** text area.
3. Insert a `<script>` tag pointing to the desired JavaScript library (e.g., via CDN).
4. Click **Save** to apply your changes.

<figure><img src="https://640450274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHAVngDAEk3s8Bw7P6Ntz%2Fuploads%2FKW8irdJeumgCHcCTSFkv%2Fimage.png?alt=media&#x26;token=8191126a-2175-4746-af74-bfeab089a7db" alt=""><figcaption></figcaption></figure>

## Using the Libraries in a Logic Rules

Once a library is imported, it can be accessed within a logic rule via the `window` object, like so: `window.LibraryName.method()`
