cancel
Showing results for 
Search instead for 
Did you mean: 

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

Frequent Visitor

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

 

Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!