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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I think there are two things you can do here:
set the visible attribute of the FormPanel object to false.
iterate over each widget in the FormPanel setting the text "" or calling the widgets clear method, as the case may be.