cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

Form works, but how to handle error messages?

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