Here what I want to do. I loaded a checkbox list of taxonomy term on the registration form. Also I have a check box for "subscribe newsletter". so the user can check the his favourit taxonomy and "subscribe newsletter". I want to know how can I alter the submission of register form to gather this data?
1 Answer
you can achieve this either by using Mailchimp Module
OR(by custom coding)
You can alter your registration form using hook_form_alter. Now in your form you can add add two new elements that is :-
- A checkbox saying- Signup to receive alerts.
- A text field to capture email address.
Now you can override your form on submission and pass the email captured above to mailchimp function that adds users to email lists via ajax call.
Hope this helps!!!