Multiple sign-up forms on one page
Closed this issue · 3 comments
Dan9boi commented
Hi, I have a page which have multiple signup forms. I've init'ed the forms induvidually, like this:
$('#jumbotron form').formchimp();
$('#sticky-sign-up form').formchimp();
But when i submit one of the forms, everything is fine, but when i go an submit the other form afterwards, the second form will respond in the first form's respnose div. How can this be?
I would like it to append the responses for one form, in itself (this) not the previously appended #mc-response div...
fabioquarantini commented
Hi,
you need set different "responseClass" in settings.
Dan9boi commented
like this:
$('#sticky-sign-up form').formchimp({
responseClass: 'sticky-sign-up-response'
});
And the html:
<div class="sticky-sign-up-response"></div>
doesn't work :(
What am i doing wrong?
fabioquarantini commented
Try this:
$('#sticky-sign-up form-one').formchimp({
responseClass: 'sticky-sign-up-response-one'
});
$('#sticky-sign-up form-two').formchimp({
responseClass: 'sticky-sign-up-response-two'
});
And the html:
<div class="sticky-sign-up-response-one"></div>
<div class="sticky-sign-up-response-two"></div>