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

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

问题描述

我为每次提交的表单添加一个唯一 ID.现在,我将该 ID 作为第一个字段,并用该 ID 预先填充它,并附有一个帮助文本,要求用户不要修改该字段.是否有任何选项无法向用户显示此选项?

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?

推荐答案

我假设您只对在用户填写表单之前以编程方式分配唯一 ID 的方法感兴趣.

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

不,Google 表单仍然没有像 HTML 表单那样直接支持隐藏字段.您唯一的选择似乎是您已经知道的自定义样式 路线.

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. 预先填写已删除的问题.如果您从表单中删除了一个问题,它会保留在回复电子表格中 - 不幸的是,表单会抑制已删除问题的值填充的 URL,否则您将能够以这种方式欺骗您的唯一 ID 到提交中.(我认为这可能是一个聪明的解决方法,但很失望它不起作用.)

  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.)

在跳过的页面上预先填写问题1.您可以在实时表单将跳过的第二页上设置问题,并且您还可以为该问题生成一个预先填写的 URL.到目前为止,一切都很好 - 但如果用户实际上并未导航到该页面,则不会提交预填充的响应.

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.

<小时>

1感谢@AdamL,他在之前的讨论中提出了这个想法 在旧论坛中讨论此主题.


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

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

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