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.

add button to success_message embed code

Regular Participant

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>





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