Events - Filecheck

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

})

=>

{

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

)

=>

{

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

Facts

ProofPayload

3D Proof

Connectors

Suggest edits

Raise issue

Navigate to header: Gate on status

Navigate to header: Drive custom logic with facts