cancel
Showing results for 
Search instead for 
Did you mean: 

Error displayed in console when submitting

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
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
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!

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