Wish list - no confirm page.

When doing subscribe forms, one of things I'd like to have is the ability to display a "Thanks" message (when the user clicks submit) via the use of javascript (so the user remains on the same web page) rather than switching to a new page as listed in confirmation page link in CM. In CM, it says the confirmation page is optional but your only choice is either the default CM confirm page or secondary page on your site.

I'm wondering if CM would consider providing the option of turning off the confirm page?

roshodgekiss roshodgekiss, 3 years ago

Hi there dano, we recommend you take a look at our AJAX Subscribe Form code, as this is a great starting point for creating forms sans confirmation pages. If there's anything we can help out with in regards to this, be sure to let us know :)


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
dano, 3 years ago

Thanks Rosh. But from what I understand of that, I don't want a browser alert message to appear, but rather have the site content change to display a "Thanks" message.

I guess I'll need to expertise of a JS person to help.

roshodgekiss roshodgekiss, 3 years ago

Hi dano, sorry that there's a little more involved to get this working as desired. For your reference, the bit that has to be changed/expanded to get this 'thanks' bit working is:

if (data.Status === 400) {
                    alert("Error: " + data.Message);
                } else { // 200
                    alert("Success: " + data.Message);
                }

While at present, the alert() is triggered by success and error messages from our API, other things can be done here instead. For a little background, I recommend checking out this AJAX subscribe form tutorial. Best of luck!


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
Phil Phil, 3 years ago

Hi dano,

Here's an example, that i prepared for another customer, using a basic animation instead of the alert. Perhaps you'll be able to modify it to do what you want.

Let us know if you have further questions.

dano, 3 years ago

Thanks Phil. One issue with that is it hides the form if the user makes an error.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098