Google表单 - 即时条件分支 [英] Google Forms - Instant Conditional branching

查看:140
本文介绍了Google表单 - 即时条件分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在撰写针对Google表单(Google Docs的一部分)的调查,并且我注意到内置了一些脚本功能。我想知道是否可以立即显示和隐藏问题,具体取决于项目符号列表,但不使用您打算用于条件分支的分页方法。我们已经计划有很多繁琐的选择,这会占用过多的页面。



通过隐藏和显示各种< div>< / div> ,我希望您可以表单立即更新。例如,您可能会到达表单并显示:



哪一个是您的本地分支?()London,()Bristol,( )曼彻斯特



取决于您挑选哪一个,下面的问题将立即隐藏在您选择的分支的下方,但如果询问有关问题则无关紧要其他。 解决方案

看起来好像Google Docs Forms中内置了一种方法,可以让您实现所需的行为。

一个解决方法是使用Google Docs作为数据库并将表单放置在其他地方,这将允许您修改表单的显示方式并使用jQuery,您将能够显示/隐藏适用于您用户的问题。



有关更多信息,请查看 h ttp://www.2webvideo.com/blog/customizing-google-docs-form-for-email-validation-with-free-jquery-script - 这种方法的问题之一是表单是不再由Google托管,您需要在其他地方使用表单托管HTML页面。

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.

解决方案

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.

这篇关于Google表单 - 即时条件分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆