This an export of my rule
{ "rules_webform_to_simplenews" : {
"LABEL" : "Webform to simplenews",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "webform_rules", "rules", "simplenews_rules" ],
"ON" : { "webform_rules_submit" : [] },
"IF" : [
{ "webform_has_id" : {
"form_id" : "webform-client-form-113",
"selected_webform" : { "value" : {
"webform-client-form-27" : "webform-client-form-27",
"webform-client-form-113" : "webform-client-form-113"
}
}
}
}
],
"DO" : [
{ "simplenews_rules_action_subscribe" : { "mail" : "[data:e_mail-value]", "tid" : "211", "confirmation" : "2" } }
]
}
}
When a webform is submitted, the e-mailadres is added to the newsletter-subscriptions. But there should be an extra condition that the submitter agrees the subscribing by checking a select-option on the webform.
when i use the data-selector data:newsletter-value or data:newsletter-key for parmeter, it is refused.