Google表单中的隐藏字段 [英] Hidden field in a Google Form

查看:94
本文介绍了Google表单中的隐藏字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为表单的每个提交添加一个唯一的ID。现在,我将该ID作为第一个字段,并预先填入了ID,并附带帮助文字,要求用户不要修改此字段。是否有任何选项可以让我不能向用户显示这个选项? 我假设你只对方式感兴趣在用户填写表单之前以编程方式指定唯一ID。



不,Google表单仍不支持隐藏字段,例如您在HTML表单中的字段。您唯一的选择似乎是您已经知道的自定义样式路线。



以下是两个有希望的想法,它们不起作用...


  1. 预先填写已删除的问题。如果您从表单中删除问题,它将保留在回复电子表格中 - 不过,表单会取消预填入网址中显示的已删除问题的值,否则你可以通过这种方式欺骗你的唯一ID。 (我认为这可能是一个巧妙的解决方法,但是它失败了)。

  2. 跳过的页面 1 。您可以在第二页上设置一个问题,实时表单将跳过,并且您还可以为该问题生成预填充的网址。到目前为止,这么好 - 但如果用户实际上没有导航到该页面,则预填充的响应不会被提交。







1 感谢@AdamL,他在以前的讨论关于这个主题的讨论。


I am adding a unique ID to each submission of the form. Right now, I made that ID the first field, and pre-filled it with the ID, along with a help text asking the user not to modify this field. Is there any option by which I can not show this option to the user?

解决方案

I assume you're only interested in ways to programmatically assign a unique ID before the user fills out your form.

No, Google Forms still has no direct support for hidden fields such as you have in HTML Forms. Your only option appears to be the custom styling route, which you're already aware of.

Here are two promising ideas that just don't work...

  1. Pre-fill a deleted question. If you delete a question from a form, it remains in the response spread sheet - unfortunately Forms suppresses values for deleted questions that are presented in pre-filled URLs, otherwise you'd be able to trick your Unique ID into the submission that way. (I thought this might be a clever work-around, but was disappointed that it didn't work.)

  2. Pre-fill a question on a skipped page1. You can set up a question on a second page that the live form will skip over, and you can also generate a pre-filled URL for that question. So far, so good - but if the user doesn't actually navigate to that page, the pre-filled response is not submitted.


1Thanks to @AdamL, who posited this idea during a previous discussion on this topic in the old forum.

这篇关于Google表单中的隐藏字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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