Multiple Mailchimp Subscription Forms for a Single List

I have embedded three different custom mailchimp forms on an html page that point to one list (each form has two identical fields and one other hidden field).

Everything works except one. Response messages (success or error) are displayed on one page in a div #mce-responsefor the first form only. The other two answers load and display on another blank page. I would like repons to appear on one page for all three forms. I am not a Java Script user, but after a little research, I found that this concerns an external script:

<script type='text/javascript' src='http://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>

Is there any solution through mailchimp settings or should we use a javascript file?

I realized that this Script is only valid for the first form. Any ideas how to do this? Thanks

+4
source share
2 answers

Iframes seems to work.

Refer to this article / video.

Text of the article to explain:

Instead of pasting the code from the embed code page of the registration form onto your website, paste it into a text document (using NotePad (PC) or TextEdit (Mac)) and name it "signup-form.html" or something like that. You can wrap the form in a div for styling and add some inline styles. Therefore, the HTML document will look something like this:

<style type="text/css">
<!--
lots of CSS to make your form look pretty
//-->
</style>

<div id="sign-up">
at least 50 lines of code copied from MailChimp goes here
</div>

HTML- ( "signup-form.html" , ) - .

, ( , ), HTML iframe :

<iframe src="http://your-site.com/mailchimp-form.html" frameborder="0" width="654" height="200">
<a href="http://link-to-form-on-mailchimp-site" target="_blank">Anchor text saying "click here to sign up" or something like that for people whose browsers can't read iframes</a>
</iframe>
+1
+1

Source: https://habr.com/ru/post/1568899/


All Articles