We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

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

CedarSinaiPark
Participant

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
David_B.
Moderator

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.

Visit Page