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.

CCSFG Always Successful Even When Not

Highlighted
Occasional Contributor

CCSFG Always Successful Even When Not

Hi;

 

I got the updated version of the CCSFG and installed it.  The updated version solves the problem of duplicate contacts.

 

But now, everything is successful, no matter what you put in the form.  Now, even if you leave the form blank, it takes you to the Thank You for subscribing page. 

 

Any suggestions on how to fix this.  Thanks.

 

1 REPLY 1
Highlighted
Employee

Re: CCSFG Always Successful Even When Not

Hi,

 

The success and failure url's are set when you first set up the ccsfg, and you can check that those values are correct inside config.php.

 

The portion of the code that handles where to direct the end user can be found inside setup>>index.php starting on line 64.  I'm not seeing checking for a blank form inside the ccsfg, but you could add that.  In theory, if the code is functioning properly and making it to the error logic, you shouldn't get to the success page without getting a 201 or 204 success http response from our servers (which couldn't occur without an email address being sent to us).

 

Best Regards,

Shannon W.

API Support Specialist

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