I'm looking to do this:

2 Radios:
1st Radio -> Ends form redirects to a new page
or
2nd Radio -> Continues form with page two.

So an easy example would be:
Do you have your account number?
No -> Redirect to page with phone number
Yes -> Continues form with Account number input.

Is it possible to do this with conditionals? Thanks.

Comments

quicksketch’s picture

This isn't currently possible, but there may be some work arounds.

1st Radio -> Ends form redirects to a new page

So for any webform submission, you'll want the user to "finish" the submission in some way. Otherwise all the event handlers are not going to fire, which do things like send the e-mails and record the submission to the database. So your best best is probably to use the 1st radio button to skip the subsequent pages, which if there are no pages left that are not skipped, the submission is processed.

You can then use the redirect URL with tokens to redirect to a particular location, or for more flexibility you might try using Webform Rules module, and set up a rule to redirect based on the value of the 1st radio button. You could also do this with a small custom module and hook_form_alter(), as documented in the handbook: http://drupal.org/node/1291574

quicksketch’s picture

Status: Active » Closed (fixed)