【发布时间】:2020-03-04 13:24:55
【问题描述】:
我已经解决了大多数与此相关的问题,但没有找到对我有帮助的解决方案(我已经一一应用了)。我有一个 HTML 表单,我通过 google 将其作为网络应用程序发布。我需要用该参数预填充一个输入框。
代码.gs
function doGet() {
return HtmlService
.createTemplateFromFile('html')
.evaluate();
}
html.html
<!DOCTYPE html>
<html>
<head>
</head>
<style>
</style>
<body>
<form>
<h1><center>Verification</center></h1>
Form ID:<input type="number" name="formid" id="formid" class="formid">
</form>
</body>
</html>
正如我所说,我在类似问题中尝试了许多建议,但似乎找不到一个可行的。 id 是我可以输入我的 url + ?formid= 并将其填充到输入中。我怎样才能做到这一点?
谢谢!
【问题讨论】:
标签: html google-apps-script web-applications url-parameters