I'm using MailChimp and I want to display the sign up form on a button click. They provide a modal pop up but it only loads when the page loads or after x amount of secs.
I want to display the screen only when a user clicks a button. Can anyone lead me the right way?
This is the code I get from MailChimp.
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us12.list-manage.com","uuid":"5fa6528f19f668f9c0c842dab","lid":"5319bf6b62"}) })</script>
Thanks!