Hello,
I am trying to set up a form and had a simple question that I am just not seeing the answer to. I want to create a form that has a question on the first page and then depending on the answer the user goes to a different page. Once they get to that new page they can then submit their answers. Is this possible? I can see how to create the separate pages but not how to direct a user to the specific page I want them to go to.
For example on page 1, the user is asked what is your favorite sport: Basketball, Football or Soccer. They can choose only one answer. Then in Webform page 2 is questions about basketball, page 3 is questions about football and page 4 is questions about soccer. If a person selects Football on page 1, I would like them to bypass page 2 and go to page 3 then when done skip page 4. If I need a page 5 for submitting that is fine.
Who can I accomplish this? If this is not possible can I hide/unhide certain questions on one page depending on their answer to a question? Thanks for any help with this. If this is a duplicate of an existing/solved issue I am sorry for the double post, I tried searching but couldn't find anything.
Comments
Comment #2
lifeontheshore CreditAttribution: lifeontheshore as a volunteer commentedYou might use Conditionals to hide the components on the 2nd, 3rd and 4th pages and then display them based on the selection(s) made on the first page.
http://i.imgur.com/AGN3Fvj.png
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedThis is a typical use case for conditionals. Marking as fixed since issue #2 is a good answer.
Comment #4
zia_tiger CreditAttribution: zia_tiger commentedOK thanks for the feedback. The reason I couldn't figure it out, is we are running an older version of Webform which doesn't have the tab listed in lifeontheshore's image.
Comment #5
lifeontheshore CreditAttribution: lifeontheshore as a volunteer commentedIf for some reason you can not update to the 4.x version of webform, there is a module that works with older versions to produce similar results.
https://www.drupal.org/project/webform_conditional
Comment #6
DanChadwick CreditAttribution: DanChadwick commentedRight. If you do update to 7.x-4.x, be sure to disable and UNINSTALL the webform_conditional module first. You will then have to re-create your conditionals in 7.x-4.x.