By SinhaM on
I am using Drupal 7.18 CMS. I have Webform with 6 fields as shown : Your name, User name, password, Email, phone number, Website. If we submit it will store in database, but here I need username & password should store in "User Account Registration form also". We can add fields from Configuration -> People -> Account settings for other fields, but It is not that situation. I need to store the User name & password values to "User Account Form" and then to login with that username and password. How can I proceed for this task. Please give me solution for this task as soon as possible.
Comments
The Drupal approach is to
The Drupal approach is to "add fields from Configuration -> People -> Account settings for other fields"
Using hook_webform_submission_insert hook
You can make a use of hook_webform_submission_insert
In the implementation hook_webform_submission_insert hook you need to make a use of user_save() function for registering the user on your site.
I am new to Drupal. In which
I am new to Drupal. In which page I should I use this code, and how to pass the field values. Please expian me clearly? Thanks.
If you are new, using the
If you are new, using the standard registration with user fields would be simpler.
I need to send Email also
I need to send Email also after submitting the form. By using webform, we have email settings to send an email. So please explain me using Reg form with Webform.
Send to who? The standard
Send to who?
The standard registration already sends an email to the new user and you can use rules to send a different email elsewhere.
User who filling the form..
User who filling the form.. then activation link will be sent.
Solution for above task
I found the working functionality of above task from this Link - http://drupal.org/node/1336486 [Useful posts -> #5 or #6].
webform rules module
https://drupal.org/project/webform_rules