Give users the option to subscribe to mailing list
Posted: 07 November 2007 12:43 PM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2006-07-17

I’m trying to set up my form such that users can check a box to say, “Yes, I want to subscribe to the mailing list” rather than have their email added automatically. Is there a way to do this that I’m missing?

Profile
 
 
Posted: 07 November 2007 02:56 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Not sure if this is exactly what you’re looking for…
This can be done without Freeform, by adding this code to the Member Registration template:

<p><input type='checkbox' name='mailinglist_subscribe' value='1' checked="checked"  />  <span class="alert">Subscribe to Mailinglist?</span></p>

Where the “1” is the value of the mailing list.

This would of course only affect new members.

EDIT: Sorry, I understand what you’re asking now…. but will leave my post here in case that’s of any help wink

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 16 March 2008 08:03 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2008-02-18

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>

Profile
 
 
Posted: 17 March 2008 06:57 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

EasyThereTiger,

My above example was for use with the native EE member registration…

Is it not currently available with Freeform, but will be in the future smile

 Signature 

Check out the new Solspace Blog!

Profile