有什么方法可以验证 Google 表单输入? [英] Any way to validate a Google form input?

查看:19
本文介绍了有什么方法可以验证 Google 表单输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想收集并验证 Google 表单中的值 (PIN).表单有 2 页,我希望验证能影响表单导航:

I want to collect and validate a value (PIN) in a Google Form. The Form has 2 pages, and I'd like the validation to affect form navigation:

  • 如果 PIN 与响应表 N 列中的值匹配,请继续查看表单的第 2 页
  • 如果 PIN 码不匹配,请不要继续.

这可以使用 Google Apps 脚本完成吗?

Can this be done with Google Apps Script?

推荐答案

您无法使用 Google Forms Service 创建这种类型的动态表单,因为在表单输入期间服务和脚本之间没有交互,除非表单提交.在多页表单的情况下,脚本无法知道用户完成了一个页面并转到了另一个页面.

You are not able to create this type of dynamic form using the Google Forms Service, because there is no interaction between the service and scripts during form entry, except upon Form Submission. In the case of a multi-page form, a script has no way to know that a user has completed one page and gone on to another.

您可以使用 HtmlService 或 UiService,通过编写自己的表单来实现这一点.

You could achieve this using the HtmlService or UiService, by writing your own form.

这篇关于有什么方法可以验证 Google 表单输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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