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.

Form works, but how to handle error messages?

Highlighted
Member

Form works, but how to handle error messages?

Hi. The form works great using Wordpress. I am able to redirect to another page on failure, but I would like to be able to access the failure error message so that I can display it on that page. Can you help?

1 REPLY 1
Highlighted
Employee

Re: Form works, but how to handle error messages?

Hi Brad,

 

To do this, you must have some coding ability, which I'm hoping you do since you're on the developer forums. Are you using the signup form post URL described here? If so, we send you an HTTP response from our server with the error code, (400 or 429 in the case of a failure), and an error message body. That error message body is what you're looking to display to your end user who has input their email address. Your code must capture our HTTP error response body, and display it to the user on your failure page.

 

If you're using a plugin, you can contant the plugin developer, who should be listed wherever you downloaded the plugin to request this feature.

 

Best Regards,

Shannon Wallace

Partner 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