I know you can add custom fields to the registration template, but these are just limited to text input, textarea and dropdown. I need to add a checkbox. Plus, the checkbox when checked must automatically add the registrant to the EE newsletter mailing list!
Let’s see- it’s definitely in there. Make sure your value is the same as the mailing list you want them subscribed to. So in the example above? The mailing list id is ‘1’- if yours is different, you’d need to change that.
OK- next, keep in mind it’s a little complicated because you have a lot of options on how people can register- and the mailing list is supposed to be double opt in. So- go to ‘Admin- Utilities- MySQL Manger- Manage DB Tables’ - take a look at the exp_mailing_list_queue - are they being put in there? That’s a holding table- they’ll be moved over to the actual mailing list upon confirmation.
And- let’s see- what are your registration settings? Email confirmation, manual confirmation, or no confirmation/auto?
Robin, I tried to set up the same ability. I used the code you described above, confirmed that the value is the same as the list, and then submitted a new registration several times.
The link signing me up for a newsletter on the registration page displays correctly. I received the confirming email and activated the account. I went into the members section and saw my new account. But I was not signed up for the newsletter, and exp_mailing_list_queue did not show anything pending. Any suggestions?
The email list list works correctly. I did sign up the address manually within the email module. I’m new enough to EE that I’m not sure about this next point, but in Admin / Members and Groups / View / Utilities / View Subscriptions, there is no email subscription listed.
Looks like the value is wrong- it needs to be a number- specifically the number of the mailing list you want them assigned to. Rendered code looks like:
Is there a way to do the opposite of this… mailinglist_unsubscribe?
Reason:
Users subscribe to the mailing list prior to becoming a member. Once they register I would like to remove them from the mailing list as they are added to a member group. This will stop them from getting duplicate emails when both the list and a member group are selected.