---
updatedAt: 2026-05-15T15:22:44.000Z
agentTools:
  projectIndex: https://docs.joinforage.app/llms.txt
---

# Events

## The `EBT Element` event object

<table>
  <thead>
    <tr>
      <th style={{textAlign:"left"}}></th>
      <th style={{textAlign:"left"}}>Type</th>
      <th style={{textAlign:"left"}}>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style={{textAlign:"left"}}><code>type</code></td>
      <td style={{textAlign:"left"}}>string</td>
      <td style={{textAlign:"left"}}>A constant string representing the type of event. Either <code>change</code> or <code>ready</code>.</td>
    </tr>
    <tr>
      <td style={{textAlign:"left"}}><code>usecase</code></td>
      <td style={{textAlign:"left"}}>string</td>
      <td style={{textAlign:"left"}}>A constant string representing the type of <a href="ref:ebt-elements">EBT Element</a>.<br /><br />One of: <code>tokenize_card</code>, <code>collect_pin</code>.</td>
    </tr>
    <tr>
      <td style={{textAlign:"left"}}><code>error</code></td>
      <td style={{textAlign:"left"}}>object | null</td>
      <td style={{textAlign:"left"}}>An object indicating an error, or null if no error has occurred.</td>
    </tr>
  </tbody>
</table>

### Example `change` event object for a `ForageCardElement`

```json
{
  type: 'change',
  usecase: 'tokenize_card',
  error: {
    message: 'Your EBT card number is invalid.'
  }
}
```

## Supported events

* [`change`](https://docs.joinforage.app/reference/change)
* [`ready`](https://docs.joinforage.app/reference/ready)

# Sub pages

* [change](https://docs.joinforage.app/reference/change.md)
* [ready](https://docs.joinforage.app/reference/ready.md)

# Sibling pages

* [Introduction](https://docs.joinforage.app/reference/js-sdk-reference.md)
* [Forage Elements](https://docs.joinforage.app/reference/ebt-elements.md)
* [Methods](https://docs.joinforage.app/reference/methods.md)
* [Forage JS Errors](https://docs.joinforage.app/reference/forage-js-errors.md)
* [Input Validation](https://docs.joinforage.app/reference/input-validation.md)