Right, so I’m no programmer, but I have by some miracle (or hours of trial and error) managed to get the custom check boxes working of the form below - WIN!
I even got it submitting to Mailchimp - WIN WIN!
I had to change my approach and style the Mailchimp code to get the checkboxes to submit as groups in Mailchimp to segment the mailing list. The form is now in an embed section. - WIN WIN WIN!
I then managed to get the form to submit, but not redirect to a horrible Mailchimp confirmation -WIN WIN WIN WIN!
All I need to do now, to have 5 big WINS is get the form to hide on submit and show a confirmation div.
Can anyone offer any advice? I don’t know Javascript and don’t want to interfere with the standard Webflow form Javascript.
I think that the easiest way would be to use the native Webflow form element, which have a built in success / error elements, and add to that form the needed custom code fields.
The actual <form> tag. You can use an embed to replace anything inside this tag, but not the tag itself. I systematically tried removing elements one by one until I discovered it was the actual <form> that needed to be changed so that the groups would populate in Mailchimp. Labelled as interests below
All I need to do is hide the form and show a div on submit. I’m sure this is some easy Javascript out there that won’t interfere with Webflows Javascript…
This is the code from the native form: <form action="https://design.us20.list-manage.com/subscribe/post?u=e9159dc178d6d8b67a76b1e75&amp;id=8a8bc07315" method="post" data-name="mc-embedded-subscribe-form" id="mc-embedded-subscribe-form" name="wf-form-mc-embedded-subscribe-form">
The only differences I can see is there a & which is being included in the action, although this isn’t effecting other fields being submitted and “wf-form-” being added to the name. I can’t get it to not add this, even if it doesn’t show in the Webflow UI. See below.
Just go to the CMS Collection page > Specials Categories template. I’ve pasted the action in the Subscribe symbol and in a new form a just stuck on the page. The action looks fine in the UI though, just not when published.
I managed to sort this out as per below if anyone is interested. Form submits to Mailchimp and updates Mailchimp groups. The Webflow validation does’t work, but it’s only a signup form. Maybe someone can figure that part out and let me know