简体   繁体   English

谷歌表单依赖下拉列表,使用谷歌应用脚​​本

[英]Google Form dependent drop down list, using google app script

I need to create a google form with two questions that contain drop-down lists.我需要创建一个包含下拉列表的两个问题的谷歌表单。 The first question is about a category, and the second one about a sub-category.第一个问题是关于一个类别,第二个问题是关于一个子类别。

Is there a way to make the second question show only the options that belong to the category chosen in the first question using app script?有没有办法让第二个问题使用应用程序脚本只显示属于第一个问题中选择的类别的选项?

If it don't have to use script for it, you can use the forms UI sections to achive this goal.如果它不必使用脚本,您可以使用表单 UI 部分来实现此目标。

  1. Add your dropdown question.添加您的下拉问题。
  2. Add section for each option in the fitst question.在最合适的问题中为每个选项添加部分。
  3. click the 3 dots on the first question and active the 'Go to section based on answer' option.单击第一个问题上的 3 个点并激活“根据答案转到部分”选项。

Go to section based on answer根据答案转到部分

After this, you will see a new menu next to each option in your question.在此之后,您将在问题中的每个选项旁边看到一个新菜单。 Go to section...转到部分...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM