Jump to content

Javascript issues with Active Campaign Form Embed

Recommended Posts

Site URL: https://www.itsbrandbabe.com/contact

I am having a redirect issue with an Active Campaign embed I have on my website. I think it has to do with conflicting javascript code within the embed and Squarespace.

I was testing for error messages on my form. If you have any form of error and try to click submit on the form, it will redirect the entire page to a new window, within my active campaign account rather than staying on my website.

I've attached a video of what it should look like, but what is actually happening below.

 

Thank you in advance for the help! 🙏 Been trying to debug this for days and have no clue where to even look!

 

Link to comment
  • Replies 1
  • Views 776
  • Created
  • Last Reply

It's an Ajax issue. I wrote a guide that explains the issue and suggests alternative solutions.

In summary, the JavaScript has not been written to work with Squarespace's Ajax page loader. If you land directly on the contact page, it will work. if a visitor lands on any other page and then navigates to the contact page, it won't.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.