I used the answer in my last question Override webform module submit to create node after webform submissions.
My webform contains many components like phone, address, responsible and others.
How can I save this data in fields tables?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI used the answer in my last question Override webform module submit to create node after webform submissions.
My webform contains many components like phone, address, responsible and others.
How can I save this data in fields tables?
Let's say that my webform contains the components: phone, address, city ..
I created a new content type that contains these fields: phone, address, city ..
Then, for each field I added
{ "variable_add" : {
"USING" : { "type" : "text", "value" : "[data:address-value-raw]" },
"PROVIDE" : { "variable_added" : { "var_address" : "Address label" } }
}
},
Where address is my MachineFieldName
and
{ "data_set" : {
"data" : [ "article-created:field-address" ],
"value" : [ "var_address" ]
}
},
To check your data as [ "article-created:field-address" ]
go to admin/config/workflow/rules/reaction/manage/rules_create_a_node_from_webform_data
go to add action and select set a data value
in the Data selector *: select article-created:...(Created article) Then you will see all your fields..
This answer to How to create a node from a Webform using rules? helped me..
I hope that can help someone..
Thank you