The Element

### Events

Subscribe to the Element lifecycle: ready, status, facts, ui, error, proof, scene, and destroy.

Subscribe with

intake.on(event, handler)

. It returns an unsubscribe function.

| Event | Fires when | Payload |
| --- | --- | --- |
| ready | The iframe is ready | \{ ui \} (resolved UI) |
| status | Job state changes | IntakeStatusPayload |
| facts | File measurements update | IntakeFacts |
| ui | UI changes after update() | the new UI |
| error | A recoverable iframe error | \{ code, message \} |
| proof | A soft-proof is ready | ProofPayload |
| scene | The job’s 3D Proof is ready for the product gallery, or no longer is | \{ viewer \} ( null when no longer ready) |
| destroy | The element unmounts | — |

### Navigate to header: Gate on status Gate on status

The one event you must handle. Gate your submit button on

canProceed

:

intake

.

on

(

'status'

, (\{

canProceed

,

jobId

\})

=&gt;

\{

submitBtn

.

disabled

=

\!

canProceed

;

hiddenJobIdInput

.

value

=

jobId

??

''

;

\});

### Navigate to header: Drive custom logic with facts Drive custom logic with facts

facts

fires alongside

status

with file measurements (dimensions in millimetres). Use it to drive a price preview or your own controls:

intake

.

on

(

'facts'

, (

facts

)

=&gt;

\{

console

.

log

(

facts

.

aggregate

.

pageCount

,

facts

.

aggregate

.

width

);

\});

See

Facts

for the full shape, or

Connectors

to map facts onto page controls without custom code.

Suggest edits

Raise issue

[IntakeStatusPayload](https://filecheck.io/docs/reference/status-payload)

[Facts](https://filecheck.io/docs/reference/facts)

[ProofPayload](https://filecheck.io/docs/concepts/soft-proofing)

[3D Proof](https://filecheck.io/docs/concepts/3d-proofs)

[Connectors](https://filecheck.io/docs/element/connectors)

[Suggest edits](https://github.com/sterlyai/mintlify-docs/edit/main/element/events.mdx)

[Raise issue](https://github.com/sterlyai/mintlify-docs/issues/new?title=Issue%20on%20docs&body=Path:%20/element/events)

[Navigate to header: Gate on status](https://filecheck.io/docs/element/events#gate-on-status)

[Navigate to header: Drive custom logic with facts](https://filecheck.io/docs/element/events#drive-custom-logic-with-facts)