cancel
Showing results for 
Search instead for 
Did you mean: 

Flex Microform Field Load

I have the following code:

const microform = new Flex(this.captureContext).microform({ styles: this.myStyles })
const securityCodeField = this.microform?.createField('securityCode', { placeholder: '•••' })
securityCodeField?.load('#securityCode-container')

When the load function is call I have error in my consolemicroform field load error.png

I tried getting the error like so :

securityCodeField.on('error', (e) => { console.error(e) });

but nothing ever get outputted to the console.

This happens because the load event only gets fired after the "15 minutes period" of the Capture Context created by the server side.

Why is this not catch in the On Error handler ?

0 REPLIES 0