Launch external form on click

Dear, I am suing MailerLite for Email-marketing and want to call a form of them on clicking a button in my Sitejet website. See enclosure for screenprint of their instruction of code to be included.
I am unsure of where to include the code to launch this form on clicking a button in Sitejet.
Any suggestions?
thanks in advance


,
Mark

2 Likes

Hello,

You can achieve this by nesting a tag inside button tag and then add class, so you can later style it.
For example:

<button class="formbutton"><a href="javascript:;" onclick="ml_account('webforms', '0000', '0000', 'show')">
  Click here to show popup
</a></button>

For script part of the code you have 3 options like shown here: Use custom HTML, CSS, and JavaScript code - Sitejet Help

Inside <head> area:

Or before the content. It can be global or specific page:

You can try which works for you.

4 Likes

Great, thanks Kamil!!

2 Likes

Just to confirm that it works fine - thanks!

2 Likes