Hey Pie Man,
In an effort to have users opt-in to mailing lists, I am trying the solution you mentioned in your post here. I removed the parameter mailinglist=“my_list_name” from the freeform opening tag below. Correct me if I’m wrong, but leaving that automatically inserted a hidden input - which I want to over ride with the checkbox in my second code snippet below.
The subscription/notification emails were sending fine until I tried adding this checkbox. Any advice?
Thanks!
snippet 1
{exp:freeform:form
form_name="mcc_contact"
form_id ="mcc_contact"
required="name|email"
notify="myaddress@email.com"
require_ip="yes"
template="mcc_contact_template"
return="contact/contact_thanks"
}
snippet 2
<li><label class="inline indent"><input type="checkbox" class="plain" name="mailinglist_all" value="4" checked="checked" /> Check here to subscribe to our mailing list.</label></li>