It appears I can get the $data variable in my forms but that the variable is blank.
I tested with 7.9 and 7.10
Neither the suggested method
$data['name'][0]
Nor my work around posted earlier in this thread seem to get any results.
Printing out $data a string field shows "Array" but printing $data[--any variable--] results in a blank.
I'm unclear where dpm($data) would show up as I'm using this form in a panel, but when I access it directly i only see see dsm($data) printed out as
data (String, 42 characters ) a:2:{s:7:"overlay";i:1;s:7:"contact";i:1;}
It's possible there is some conflict I didn't notice the Webform Rule wasn't working right away but I did previously have it working in 7.8 and haven't touched the rules since then.
Any help is appreciated.
Comments
Comment #1
stborchertWebform Rules does *not* add or modify variables used in templates of webform. The $data-variable coming from Webform Rules can be used within a rule only.
What exactly are you trying to do with the variable?
Comment #2
eric-ie commentedWell I'm trying to take the data from a Webform submission and save it to fields in a Node.
For instance there is a field in my Webform called Email. I would like to take that value and put it in a field of a new Node which has a field named Email. The new node is not a webform.
I had it working fine with an earlier version of Drupal although i had to use a for each loop (mentioned here) not the standard bracket access.
Comment #3
stborchertWould you please export the rule you're using so I can try to reproduce it.
And a screenshot of the Webform configuration would be great.
Comment #4
stborchertPlease reopen if still valid.