Any way to validate a Google form input?

别等时光非礼了梦想. 提交于 2019-12-13 03:37:07

问题


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:

  • If PIN matched with a value in Column N of the response sheet, continue to page 2 of the form
  • If PIN not matched, Do not continue.

Can this be done with Google Apps Script?


回答1:


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.

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




回答2:


Not sure you can do this with Google Forms and Apps Script.

But I have done exactly this with UiApp/Html Service in Apps Script. I used it for a light-duty user authentication.



来源:https://stackoverflow.com/questions/20844107/any-way-to-validate-a-google-form-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!