Properties and Methods
This property contains the error message returned during last email verification (if any). Few possibilities of facing error can be a misconfiguration of allowed domains or your QuickEmailVerification account has low credit balance.
Last verification email value can be checked using the prevVerification property of qev object. It's helpful to avoid duplicate verification if you are using the verify() method of qev.api object (explained later in this section). If the email input is not changed since last verification and the user attempts to submit the form again, you may check qev.prevVerification and utilize the previous verification result.
verify(emailValue, successCallback, failureCallback);
The first argument accepts the email address to be verified. The successCallback and failureCallback arguments accepts callback functions which will be executed upon email verification result returned by widget. You can add a desired set of actions in these callback functions. If the email address has passed the verification checks, successCallback gets executed while email addresses failed during the verification process will call failureCallback.
When you do not want to autoRegister input fields with the widget (by default widget detects email fields automatically from the page on which its installed) or when you want to register dynamic fields with the widget, you may need to use this method. The only argument that the addListener() method accepts is the input field which is required to register for email verification. Registered fields will then behave just like auto registered fields and will verify user email on blur event of the input field. Here's the example,
var field = document.querySelector("input[id='email_field_to_register']");
Sometimes, you may need to dynamically remove fields from the DOM and un-register all listeners of that field. You can use removeListener() method of qev.api object to clear all the listeners attached to the field. Pass the field to unregister as the argument to the method. Here's the example,
var field = document.querySelector("input[id='email_field_to_unregister]");