April 9, 2024
Contribute to the Microsoft 365 and Office forum!
Click here to learn more 💡
May 10, 2024
Word Forum Top Contributors:
Branching in a Microsoft Word form
Report abuse
Thank you.
Reported content has been submitted
This could certainly be done. How, is a design decision and depending on that decision could take a considerable amout of time to develop. Your starting point would probably be the Exit event of the control receiving the answer.
***
Death smiles at us all, but all a man can do is smile back.
For more help with Word visit:
http://gregmaxey.com/word_tips.html
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
If you are using a Userform, one possibility would be to use the .tag property of your controls (radio button, checkbox, etc). For simple branching like what you describe, set the control tags for correct answers to true, and the wrong answers to false, then write a small bit of code to loop to find the selected control(s), and then check their tags. If any are false, close the form out and exit, otherwise continue to the next question as planned. Personally I'd probably use something like a multipage control and just show/hide subsequent pages (vs. actually hiding and showing individual controls and questions).
If you need a more sophisticated branching, you could have each tag reference where the user should go next; for example:
What is your field of study?
(a) Physics <tag: academic careers>
(b) CSE <tag: programming careers>
(c) Nursing <tag: hospital careers>
(d) Liberal arts <tag: fast food careers>
Then your code can read the tag, and move the user to the appropriate next step in the tree.
HTH
Report abuse
Thank you.
Reported content has been submitted
2 people found this reply helpful
·Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Question Info
Last updated March 2, 2024 Views 2,798 Applies to: