ActiveCampaign Phone Verification

by Dave | activecampaign

Click HERE to access the javascript code.

Active Campaign phone verification. I’m going to show you how to modify the default Active Campaign form such that they verify the phone number before submission. So you don’t end up with garbage numbers in their contact record. To do so we’re going to inject some JavaScript into the Active Campaign forms. And again, this is for the default Active Campaign forms. This can be extrapolated to custom forms, or other forms that are set up. However, you do need to be able to put in some kind of JavaScript that does checking like this.

So let’s dive right in. So inside my Active Campaign account, I’ve created a web form a default web form that asked for name, email, and phone number, and it made them all required, by default email is required. You go here, for instance, and do phone, you need to tick this little green box over here. Next step, once you’ve set up the form is to go here, go to integrate, and then you’re going to want to copy this embed code. So you want to copy all that. And then you’re going to paste it onto your web page. And the important part is, there are some code here that I will show you that we’re going to need to modify.

So I’ve already put it here on this page right here. So if I go view the source code, let me show you exactly what was added. So this chunk of code right here was not originally in the JavaScript or the script that Active Campaign provided. So you need to provide this right here, what we’ll do is we’ll check to make sure that it has a valid format, and then also, it’ll make sure that it doesn’t have all the same number. So it might be a valid format. However, if somebody types in all zeros, we know that’s not a real phone number. If it’s all ones, it’s not a real phone number. So that way, when they do make up submission, it’s checked before it’s put in.

So let’s try some things out. So I’m going to do all zero. And when I go ahead and try and submit it’s going to tell me that’s invalid. That’s a valid us phone numbers format, but it’s all zeros. So if I did . . . this is valid, So that’s how you can use phone verification on your Active Campaign.