Blank forms are being captured by LeadManagerFX. For some reason, the do not capture blank form settings in Feature Activation is not working for this client’s form.
Created a custom code to block the capture event of LMFX using onFormCapture.
<script>
mcfx(function(t) {
t.configure("onFormCapture", function(form) {
var contactEmail = form.elements['contact-email'];
var yourName = form.elements['your-name'];
var yourPhone = form.elements['your-phone'];
var yourMessage = form.elements['your-message'];
if (contactEmail && contactEmail.value.trim() === '') {
console.log('Will not capture due to empty input reason!');
return false;
}
if (yourName && yourPhone && yourMessage &&
yourName.value.trim() === '' &&
yourPhone.value.trim() === '' &&
yourMessage.value.trim() === '') {
console.log('Will not capture due to empty inputs reason!!');
return false;
}
});
});
</script>
Blank forms are not captured anymore.