1. Home
  2. Interswitch lending Service
  3. Hosted Fields
  4. Hosted Fields Instance Events

Hosted Fields Instance Events

There are available events emitted by the hosted field instance that you can subscribe to. This can be done on the hostedField instance.

These events include:

NameEvent Description
focusThis event is emitted when a field gains focus
blurThis is emitted when a field loses focus
validityChangeThis is emitted when the validity of a field changes
emptyThis is emitted when the field becomes empty

Register the events using the on method on the hostedFieldInstance returned.

See below an example using the focus and blur event:

Was this article helpful to you? Yes No

How can we help?