Webform Rules - Create a Drupal User

by Mo-ster   Last Updated November 24, 2017 14:07 PM

I'm using Webforms (via the Webform module) and using Rules (with the Rules module and the Webform Rules module)... as a side note, I'm also using CiviCRM although I don't think that is has an impact of the issue I am having...

When using Rules I can specify an action to take place on a given event - in my case when a particular webform is submitted. When webform 'a' is submitted I want a Drupal user to be created...

If I use the action 'create entity' and specify that the entity to be created is of type 'User' then if I statically enter the value for the username and the e-mail address the Drupal account is created.

However, if I try to tell the action creation process to use the value entered in the webform as the username and the e-mail address ( e.g. [data:{component}-value] where {component} is substituted for the machine name of the field in question ) for the intended Drupal account, no Drupal account is created. Does anyone know why this is the case and what the solution for this is?

Side note: I know the value used in [data:{component}-value] is correct as I added an action saying output a message and added the data field to the message and it shows the correct details (e.g those entered in the webform)

Related Questions

Drupal 7 civiCRM view link to webform submission

Updated April 23, 2018 13:07 PM

Hide webform after the user's first submission

Updated May 16, 2017 17:07 PM