How can we add a custom error message if a user does not enter a valid email

Highlighted

How can we add a custom error message if a user does not enter a valid email

We have built a custom Post URL sign up form and want to customize the error message/link. Right now it goes to visitor2.constantcontact.com/api/signup.

 

You can test it here: http://www.cedarsinaipk.dreamhosters.com/shelly-testing-page/

 

What can I add to this html (or javascript) that will either not send the form - and give an error. OR... send to a special page with more information.

Thank you,

 

1 REPLY 1
Moderator

Re: How can we add a custom error message if a user does not enter a valid email

Hello,

 

Thank you for reaching out to Constant Contact API Support. 


The response from the submission will come back with a status and a responseText JSON object. If you are using a custom signup form that uses our inline embedded signup endpoint, you might have success using something similar to the jQuery example on our Tech Blog post about that endpoint: http://techblog.constantcontact.com/api/release-updates/announcing-a-new-signup-form-post-url/

 

Please let me know if you have any other questions!

Regards,
David B.
Tier II API Support Engineer

 

Developer Portal

View API documentation, code samples, get your API key.

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured