My webpage has a registration for created with WebForm module! (it's not a user registration!)
I also have a newsletter.
What i'm trying to achive is to have a checkbox at my WebForm, if which is check the user accept to sign up for the Newsletter! This is simple, but i would like to subscribe the users automatically, without any user input. So if the user submits the webform and checks the Sing up checkbox, than he is automatically registered for the Newsletter!?
Is there any way to solve this?
Comments
Comment #1
elarifr commentedi'd like too :)
subscribe.
Comment #2
sutharsan commentedYou find a discussion of webform and simplenews integration here: http://drupal.org/node/127178
Comment #3
kulfi commentedI think I'm taking a super complicated route to registration + webform. Hoping someone can KISS it for me:
- I have ~6 pages from which a user can register (i.e. text + registration form)
- After submitting the form on each of these pages, they need to be directed to new forms (6 new forms total, one for each of the original pages - so multistep form handling)
- I am using webform for the original 6 pages, and have code in Additional Processing for registering the user. Each webform has its own direct to internal:node/XX
- I'm trying to set the submitter of the next webform (there 6 of these forms, one for each of the original starting points) as the user who was just auto-registered. This is the step I'm stuck at.
How do I set the name, uid, whatever of the just submitted form?
If another approach comes to mind please share that too. I couldn't use Drupal's default registration form, since I couldn't figure out how to direct to different nodes based on the starting points.
Comment #4
sutharsan commentedIn webform you can execute custom code upon form submission. With a few lines of code you can subscribe a user based on a webform check-box they ticked. If you have such a code snipped, feel free to post it here or add it to the simplenews handbook.