Event Types
ChangeEvent Fields
string
required
The type of event. This can be one of the types listed above.
object
required
The current state of the fields. See the State
Object for more details.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const myListener = (e: ChangeEvent) => {
console.log(e);
};
window.confidoHostedFields.addChangeListener(myListener);
// then later, clean it up
window.confidoHostedFields.removeChangeListener(myListener);
| Type | Description |
|---|---|
bin_change | Emitted when the first 9 digits of the card number field changes |
bin_loaded | After the bin number changes, the SDK makes a network call to get more information about the current card, including the card type (debit or credit). This event is emitted after this network call returns. |
field_error_cleared | Emitted when a field, that was previously in error, is fixed. |
fields_loaded | Emitted when all the fields of the active form type are finished loading. |
initializing | Emitted immediately following a call to sdk.init() |
initialized | Emitted once initialization is done and successful. |
init_error | Emitted when there’s an error with initialization. |