设计Google表单,使其每天不接受某些小时的回复 [英] Designing a Google Form to not accept responses for some hours everyday

查看:41
本文介绍了设计Google表单,使其每天不接受某些小时的回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在周日至周五的上午10:15至下午14:30期间使用Google表单进行在线出席.Google表单具有停止接受回复"选项,每次都应手动完成.但是如果可以自动完成同一件事会更好.我对此做了一些研究.直到遇到类似的情况,我才发现任何东西,但是它也没有经过验证的解决方案,而且一切看起来都很乱.

I want a Google Form for online attendance during the time from 10:15 AM to 14:30 PM, from Sunday to Friday. Google Form has an option "Stop Accepting Responses" which should be done manually every time. But it would be better if the same thing could be done automatically. I did some research on this. I didn't find any until I came across one, with similar situations but it too had no verified solution and everything looked gibberish.

我的想法:

提取打开表单的时间.如果打开时间不在10:15 AM和14:30 PM之间,则将用户引导至空白页,标题为关闭了考勤表".这可能是一种可能的方法,但不知道从哪里开始.

Extract the time the form was opened. If the opened time isn't between 10:15 AM and 14:30 PM, direct the user to empty page with header saying "Attendance Form closed". This could be one possible way but no idea where to start.

推荐答案

可以通过 setAcceptingResponses() :

const openForm = () => FormApp.getActive().setAcceptingResponses(true);
const closeForm = () => FormApp.getActive().setAcceptingResponses(false);

配置每个功能以根据适当的时间触发器

这篇关于设计Google表单,使其每天不接受某些小时的回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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