Hi @weareleads,
You should take a look at this thread for more information on how to manipulate the default submit process.
Best,
Hristian
This may help you. You can capture the “data” event from the Logate “pca” object.
var email_valid = false;
var mobile_valid = false;
//Capture PCA validation
pca.on("data", function(a,b,c){
console.log('Data Event');
if (a === "emailvalidation"){
email_valid = (c===false) ? false : true;
};
if (a === "mobilevalidation"){
mobile_valid = (c===false) ? false : true;
};
console.log('Email valid: ' + email_valid);
console.log('Mobile valid: ' + mobile_valid);
});
The use the email_valid and mobile_valid semaphores to decide whether to submit or not.
Great thread, as i’m facing the same problem as @weareleads.
@Arnold_Bailey thanks for your code, but where exactly do you add it ?
Is it on the link submited by @Hristian (here?)
thanks