Can Anyone help me in this? I need to create users as and when an anonymous user fills webforms. I did use some forum material to create new users - using User_save function. But what happened was when i tried to fill the form with same user name got Exception error. Ofcourse, as 2 users should not have same username.

In addition to that, if the user is already logged in and if he tries to submit, that will be an error as the account already exits. Is there any way that i can go about in avoiding errors. I tried using webform rules module. But there wasn't much of explanation/ examples from which one can learn

Comments

quicksketch’s picture

Category: Feature request » Support request
Issue summary: View changes
Priority: Major » Normal
Status: Active » Closed (fixed)

This functionality isn't supported in the main module. There have been several attempts at this in the past:

https://drupal.org/project/webform_registration
https://drupal.org/project/webform_register

But none of these solutions have been ported to Drupal 7. Unfortunately that means you'll either need to port one of these modules to Drupal 7, or use custom code to implement it (somewhat described in
https://drupal.org/node/1900922).

Custom coding is not covered in the core Webform issue queue, so beyond this help, there's not much else we can do here. Considering this was opened a long time ago, I'm going to close this issue directly.