# How can we help?

## Overview

Lightbox form data can be accessed via JavaScript code in [custom JavaScript (boxes)](https://support.cordial.com/hc/en-us/articles/360024879471) as well as custom JavaScript (parent).

## Custom JS (boxes)

Use this code to access the form data object:

```
window.PRIMER_API.form_submit_data
```

Use this code to access the email address input field:

```
window.PRIMER_API.form_submit_data.email
```

## Parent JS (parent)

Use this code to access the form data object. The code should be inserted into the box labeled **After Lightbox Submit**.

```
api.GET_ANALYTICS().form_submit_data
```
