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.

add button to success_message embed code

Occasional Contributor

add button to success_message embed code

I need to add a button in the embed code when the Sucess message shows up,  How can I do that?  I've tried eveything including jQuery but it does not work?



<span id="success_message" style="display:none;">
           <div style="text-align:center;">Thanks for signing up!</div>


Honored Contributor

Re: add button to success_message embed code



After a bit of research, it looks like the current version of the code that powers our form specifically has a conflict with adding a few HTML elements to the success message. Here's the elements that will be hidden if you try to add them to the message:

  • <p>
  • <h2>
  • <button>
  • <form>


A quick and easy workaround for your case would be to use an <input> element that is not part of a form. For example:

<input type="button" value="This text is displayed" />

Please let me know if you have any questions!



Elijah G.
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