简体   繁体   English

单击谷歌表单中的提交按钮时如何显示消息框?

[英]how to display message box on clicking submit button in google form?

I have written a script in spreadsheet of a corresponding google form. 我已经在相应的Google表单的电子表格中编写了一个脚本。 I need to display a Message box displaying the value of "rand" as shown in the script code below in the picture. 我需要显示一个消息框,其中显示“ rand”的值,如下面图片中的脚本代码所示。

Can anyone help me with the code for displaying the required message box. 谁能帮助我提供显示所需消息框的代码。 Please go through the script which is written in the script editor of the spreadsheet(corresponding to the google form). 请仔细阅读在电子表格的脚本编辑器中编写的脚本(与Google表单相对应)。

Please go through the code and suggest any solution Sciptcode 请仔细检查代码并提出解决方案的建议

Unfortunately you can't interact with a google form from apps script . 不幸的是,您无法通过应用脚本Google表单进行交互。 Your apps script is triggered on form submit and it does not give any feedback to the google form. 您的应用脚本会在表单提交时触发并且不会向Google表单提供任何反馈。 If you want to give your user a confirmation message you should consider sending him an email from your triggered script. 如果要向用户发送确认消息,则应考虑从触发的脚本向他发送电子邮件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 单击提交按钮后,如何使用jQuery淡化表单并在成功时显示消息? - How to fade a form and display a message on success using jQuery after clicking the submit button? 点击提交按钮后如何关闭灯箱表单? - How to close light box form after clicking on submit button? javascript | 单击“提交”按钮后如何显示成功消息 - javascript | How to display a success message after clicking the submit button 如何在不单击提交按钮的情况下提交表单? - How to submit a form WITHOUT clicking a submit button? 单击提交按钮时显示消息框时如何间接弹出新窗口 - How to pop up a new window indirectly when shown a message box when clicking submit button 单击提交按钮时,它只会刷新页面。 如何获得显示我想要的消息的信息? - When clicking on the submit button it just refreshes the page. How can I get it to display the message I desire? 如何在使用PHP单击提交按钮后删除文件之前显示警告消息 - How to display a warning message before deleting a file after clicking a submit button with PHP 在不使用 PHP 的情况下单击表单中的提交(输入类型)后,如何使用 javascript 在页面上显示消息 - How to display a message on page using javascript after clicking on submit(input type) in a form without using PHP 单击按钮时如何显示对话框 - How to display a dialog box when clicking on the button 在必填字段不为空的情况下,如何使用javascript在表单中创建条件以在单击“提交”按钮时显示消息? - How to make a condition in form using javascript for displaying a message on clicking submit button while required fields are not empty?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM