0

I have a webform application: five (5) questions/statements (Select Yes/No) for anonymous user usage.

First result: all five (5) questions are answered "Yes" - the webform gets submitted, emails get sent, the user sees a message acknowledging their submission.

Second result: if any one, or more, of those five (5) questions is answered "No" - the webform gets submitted, emails get sent, BUT then the user must be redirected to another page with a system message about why they were redirected.


I have tried to expose the fields I need with Token and Rules but have not had any luck. This is all I have so far, I can't seem to expose the values from the five (5) questions only and don't know how to run them through a loop to check for "No" answers with Rules. I have also searched all of the answers on StackExchange without a real workable result. I am not a programmer.

{ "rules_casa_redirect" : {
"LABEL" : "CASA Redirect",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "webform_rules" ],
"ON" : { "webform_rules_submit" : [] },
"DO" : [
{ "webform_submissions_load" : {
"USING" : { "nid" : "367" },
"PROVIDE" : { "submissions" : { "submissions" : "Fetched submissions" } }
}
}
]
}
}

Drupal 7.67 | Webform 7.x-4.19 | Webform Rules 7.x-1.6 | Rules 7.x-2.12 | Token 7.x-1.7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.