The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Error displayed in console when submitting

Highlighted
Member

Error displayed in console when submitting

All.

 

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.

Rhys

Tags (3)
3 REPLIES 3
Highlighted
Moderator

Re: Error displayed in console when submitting

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.

 

 


Regards,
Jimmy D.
Tier II API Support Engineer
Highlighted
Member

Re: Error displayed in console when submitting

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?

 

Thanks!

Highlighted
Moderator

Re: Error displayed in console when submitting

Hi @ColinM421,

 

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


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured