在Google Apps脚本中提交后刷新或清除表单? [英] Refresh or clearing form after submitting it in Google Apps Script?

查看:132
本文介绍了在Google Apps脚本中提交后刷新或清除表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Apps Script中创建了一个表单,并将其嵌入到Google协作平台中。如何在提交表单后刷新或清除表单?我能够将数据保存到电子表格中,但数据保留在表单中。

我认为你有两件事可以在这里做:


  1. 设置FormPanel对象的visible属性为false。


  2. 在FormPanel中遍历每个窗口小部件,并设置文本或调用窗口小部件clear方法(视情况而定)。



I have created a form in Google Apps Script and embedded it into Google Sites. How do I refresh or clear the form after it has been submitted? I am able to save the data to a spreadsheet but the data stays in the form.

解决方案

I think there are two things you can do here:

  1. set the visible attribute of the FormPanel object to false.

  2. iterate over each widget in the FormPanel setting the text "" or calling the widgets clear method, as the case may be.

这篇关于在Google Apps脚本中提交后刷新或清除表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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