1

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

1 Answer 1

2

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 :-

  1. A checkbox saying- Signup to receive alerts.
  2. 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!!!

1
  • tanx . I used the same solution as you offered.
    – nooshinha
    May 12, 2013 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.