如何使用Apps Script在Google表单中基于表单响应设置确认消息? [英] how to set Confirmation Message based on form Responses in google forms using Apps Script?

查看:81
本文介绍了如何使用Apps Script在Google表单中基于表单响应设置确认消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google表单中,我可以使用Google Apps脚本使用通过表单提交的值来设置确认消息,该消息将显示给已提交这些值的用户?请注意,默认的确认消息现在是已记录响应",并且我知道可以将此文本更改为其他文本,但是我需要的是根据用户的响应来操作消息.

In google forms, using google apps script, will I be able to use the values submitted through the form to set the confirmation message which is to be displayed to the user, who has submitted those values? Note that, the default confirmation message now is "The response has been recorded" and I know that I can change this text to other text, but what I need is to manipulate the message based on responses of the user.

推荐答案

当您.setConfirmationMessage(message)提交表单时,仍然显示当前消息,并且直到下一次提交表单时,您的新消息才会显示.好像操作的顺序是-1)将表单的值提交到电子表格2)显示确认消息3)运行在表单提交"功能.

When you .setConfirmationMessage(message) on form submit, the current message still gets displayed and your new one won't show up until the next form submission. Seems like the order of operations is - 1) submit values of form to spreadsheet 2) show confirmation message 3) run "on form submit" functions.

因此,我们无法根据他们的回答为当前用户的响应有条件地设置并立即显示自定义消息.确认消息在某种意义上是前载".

So, we can't conditionally set and immediately display a custom message for the current user's response based on what their answers were. The confirmation message is "front-loaded" in a sense.

这篇关于如何使用Apps Script在Google表单中基于表单响应设置确认消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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