Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Forms - Instant Conditional branching

I am writing a survey on Google Forms (part of Google Docs), and I notice there are some scripting capabilities built in. I wanted to know if it were possible to show and hide questions immediately, based on a choice from a bullet-point list, but without using the page-break method you are meant to use for conditional branching. We have planned to have lots of fiddly choices, which would take up an excessive number of pages.

By hiding and showing various <div></div>, I am hoping that you can make the form update instantly. For example, you might reach the form and be presented with:

Which is your local branch? ( ) London, ( ) Bristol, ( ) Manchester

Depending on which one you picked, a question would instantly be un-hidden below relating to the branch you had selected, but which would not be relevant if asked about the others.

like image 639
Patrick Beardmore Avatar asked May 05 '12 23:05

Patrick Beardmore


1 Answers

It doesn't look like there is a way built into Google Docs Forms that would allow you to achieve the desired behaviour.

One work around would be to use Google Docs as the "database" and host the form elsewhere, this would allow you to modify the way the form is displayed and using jQuery you would be able to show/hide the questions that are applicable to your users.

For more information take a look at http://www.2webvideo.com/blog/customizing-google-docs-form-for-email-validation-with-free-jquery-script - one of the problems with this approach is that the form is no longer hosted by Google, you would need to host the html page with the form somewhere else.

like image 93
kzhen Avatar answered Oct 04 '22 14:10

kzhen