Help with a survey design problem?

How do I implement a survey where a user, having selected an option from a main menu and answered the questions based on that option, can return to a menu and select additional options? I want all answers to be recorded. So the user can select one or more options, but not at once from the main menu. Only if he answers the questions from the option first. 

2020-04-15T19:21:59Z

I should specify that I am perfectly fine with coding this in a programming language (say R, Python or C++) but is there an online tool that could be used to do this? Google forms does not seem to have this capability as far as I know.

.2020-04-15T19:05:57Z

Move your question to Computers & Internet<Programming as it's currently in Yahoo Products>Yahoo Answers and not applicable to this subcategory (and thus decreases your chances of getting many useful answers).
You can move your question by clicking Edit (pencil icon for mobile)>Edit category just beneath your question, then selecting the category in which it is better suited. ☺