Google表单脚本将用户移动到表单中的新页面 [英] Google Forms Script to Move User to New Page in the Form

查看:216
本文介绍了Google表单脚本将用户移动到表单中的新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有Google表单,我该如何使用Apps脚本来执行以下操作:



1。)获取用户对表单页面上的问题的回答

p>


  • INTERJECT SCRIPT LOGIC



<2>暂停)表单并将脚本激活到:


  • 处理结果

  • 取决于处理结果将它们移到不同的页面



基本上,我希望对脚本进行分析一个特定页面的结果,并将它们重定向到一个新页面,具体取决于多个答案的结果。表单本身有一个重定向工具,但它只适用于一个问题的结果。我有两个问题,我需要问,并基于这两个答案,将它们移动到一个新页面。



我知道我可以创建 Item s,其中包含 PageNavigationType ,如这里,但是,这仅适用于单个项目。对于 Item s也没有 setPageNavigationType ,所以我想知道这是否可以动态地作为用户正在填写表单?

解决方案

讨厌成为坏消息的人,但这是不是

Google Apps脚本仅帮助进行表单创建过程(和编辑),在用户填充期间不可能做任何事情。

此外,它只能通过编程方式在Form界面上手动执行,它仅用于帮助您自动执行手动执行繁琐的操作。例如,为问题添加一长串选项,或帮助您生成并发送数百个类似的表单。或者只是真正创建快速测验或其他形式,你必须每周创建等。



只是为了让其他用户能够完全清楚这一点。您无法使用Google表单的Apps脚本执行任何手动操作。 Apps脚本不会向Google表单添加任何新的或隐藏的功能。


If I have a Google Form, how might I use Apps Script to:

1.) Get the user's responses to questions on one page of the form

  • INTERJECT SCRIPT LOGIC

2.) (pause) the form and have the script activate to:

  • process their results
  • depending on the result of that processing, move them to a different page

Basically, I want to have the script analyze the results of a particular page, and redirect them to a new page depending on the results to multiple answers. There is a redirect utility in the form itself, but it only works for the result of one question. I have two questions that I need to ask, and based on both of those answers, move them to a new page.

I know that I can create Items that have a PageNavigationType as seen here, however, this is for a single item only. There is also no setPageNavigationType for Items, so I'm wondering if this is even possible to do dynamically as a user is filling out the form?

解决方案

Hate to be the one to give the bad news, but that's not possible.

Google Apps Script only helps with the Form creation process (and editing), it's not possible to do anything while the user is filling it, period.

Also, it can only do programatically what you can do manually on the Form interface, it's useful only to help you automate things that would be cumbersome to do manually. For example, adding a long list of options to a question, or helping you generate and email hundreds of similar Forms. Or just really creating quick quizzes or some other forms that you have to create every week, etc.

Just to be completely clear to other users that might read this. It's not possible to do anything with Apps Script for Google Forms that you can't already do manually. Apps Script does not add any new or hidden features to Google Forms.

这篇关于Google表单脚本将用户移动到表单中的新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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