We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Error displayed in console when submitting


Error displayed in console when submitting



I am receiving the following error when I submit my form and am wondering what it means:

Uncaught TypeError: o.complete is not a function
    at Object.h.Handlers.submitForm (submit_form.js:62)
    at callback (signup-form.js:73)
    at Tr.n.Md (recaptcha__en.js:401)
    at oo.<anonymous> (recaptcha__en.js:230)
    at oo.<anonymous> (recaptcha__en.js:230)
    at Ze (recaptcha__en.js:60)
    at Ve (recaptcha__en.js:60)
    at Te.b (recaptcha__en.js:57)


Any help would be greatly appreciated.



Hello @JulieH2841,


Thank you for reaching out to Constant Contact's API Support.


Those errors do not look familiar to our API or one of our prebuilt sign-up forms. Are you using a third party integration or a custom sign-up form?


The error that stands out is the one referring to the recaptcha. I would double check to make sure that has been implemented on the form correctly.



Jimmy D.
Tier II API Support Engineer

Hi @Jimmy_D,


I am running into this error as well. It is a problem with the Constant Contact JavaScript that gets loaded to handle the sign-up form submission. The JavaScript checks if jQuery is already loaded on the page, and loads jQuery v2 if it's not. If jQuery v3 is already loaded, however, this error occurs. This is because jQuery v3 renamed the "complete" function to "always" -- see here: https://jquery.com/upgrade-guide/3.0/#ajax. Would it be possible for Constant Contact to update the code to support both versions of jQuery?



Hi @ColinM421,


Thank you for this information. I'll pass this along to our engineers and see what they can do with this.

Jimmy D.
Tier II API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page