提交后立即发布评分 - 如何使用Apps脚本 [英] Release grade immediately after submission - how to do using Apps Script

查看:125
本文介绍了提交后立即发布评分 - 如何使用Apps脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下几行Apps Script来动态生成Google表单测验

  form.setIsQuiz(true); 
form.setTitle(New)
.setDescription('Test')
.setConfirmationMessage('Thanks for respond!')
.setAllowResponseEdits(false)
.setAcceptingResponses(true)
.setLimitOneResponsePerUser(true)
.setShuffleQuestions(true)
.setProgressBar(true)
.setCollectEmail(true)

这是创建一个表单,我可以将测验发送给多个人。但我也想在发布后立即发布评分。这是Google测验表格中的一项功能。但是我无法找到与发布分数提交后立即提供的Google表单功能等效的方法。

我无法为每个表单手动执行此操作,因为我生成了数百个分发给不同人员的表单。

解决方案

AFAIAA目前没有办法直接使用Google Apps脚本方法。



可能的解决方法是创建一个最小的Google表单,将其作为测验,并将其配置为每次提交后立即。而不是在脚本中创建表单,只需复制此表单文件(使用脚本)并继续以编程方式在副本中构建测验。



值得注意的是, Google Apps脚本中的这一遗漏可能会导致已完成测验中的错误。当使用脚本创建表单并使用.setIsQuiz(true)方法将其转化为测验时,发布标记设置默认为稍后,手动审查后。在表单设置用户界面中,此选项包含注释打开电子邮件收藏 - 这样当手动发布结果时,会有一个电子邮件地址将结果发送到。当使用上述步骤创建测验时,电子邮件收藏未启用。这意味着不可能手动发布结果。上述解决方法可缓解此问题。


I am using the following lines of Apps Script to dynamically generate a Google Forms Quiz

 form.setIsQuiz(true);
 form.setTitle("New")
 .setDescription('Test')
 .setConfirmationMessage('Thanks for responding!')
 .setAllowResponseEdits(false)
 .setAcceptingResponses(true)
 .setLimitOneResponsePerUser(true)
 .setShuffleQuestions(true)
 .setProgressBar(true)
 .setCollectEmail(true)

This is creating a form and i am able to send out the quizzes to multiple people. But i also want to "Release Score >> Immediately After Submission". This is a feature in Google Quiz Form. But i am unable to find a method equivalent to the Google Forms feature of "Release Score >> Immediately After Submission".

I cannot do this manually for each form because i generate hundreds of forms distributed to different sets of people.

解决方案

AFAIAA, there is no means to do this directly using a Google Apps Script method at this time.

A possible workaround is to create a minimal Google Form, make it a quiz, and configure it to 'Immediately after each submission'. Instead of creating the form within the script, merely duplicate this Form file (using your script) and proceed to build your quiz programmatically in the copy.

It is worth noting that this omission in Google Apps Script can result in a bug in the completed quiz. When a Form is created using a script and .setIsQuiz(true) method is used to to turn it into a quiz, the "Release marks" setting defaults to "Later, after manual review". In the Forms settings User Interface, this option includes the note "Turns on email collection" - This is so that when results are released manually, there is an email address to send the results to. When a Quiz is created using the steps above, email collection is not enabled. This means it is not possible to release the results manually. The workaround described above alleviates this issue.

这篇关于提交后立即发布评分 - 如何使用Apps脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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