When you'd like to perform some customized routines upon email verification started or completed, you may need to rely on some event fired specifically during the verification process. QuickEmailVerification JavaScript Widget will fire two events, 'qevOnverify' and 'qevOnverified' respectively when email verification is started and when verification result is returned by QuickEmailVerification.

You can attach a callback handler to these events which can execute any extra code you may need to execute upon these events fired.

qevOnverify

When the user leaves the email address field after entering the value, QuickEmailVerification JavaScript widget will verify the user provided email address. This event is fired just before the verification process starts. The extra detail about this custom event can be found in the detail field of the event object of the callback function.

// Fetch the field to bind event on
field = document.querySelector("input[id='email-input']");

field.addEventListener('qevOnverify', function(e) {
    console.log(e.detail);
});

qevOnverified

QuickEmailVerification JavaScript widget will fire qevOnverified event once email verification process is completed and widget has returned the verification result. The qevOnverified event contains additional details about the verification result inside the detail field of the event object.

// Fetch the field to bind event on
field = document.querySelector("input[id='email-input']");

field.addEventListener('qevOnverified', function(e) {
    console.log(e.detail);
});