add button to success_message embed code

brodyr
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>
       </span>

 

1 REPLY 1
Elijah_G
Member

Hello,

 

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!

 

Sincerely,

Elijah G.
API Support Engineer
Developer Portal

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

Visit Page