【问题标题】:Insert/show Google Form using javascript使用 javascript 插入/显示 Google 表单
【发布时间】:2014-09-22 10:44:31
【问题描述】:

是否可以使用 Google Apps 脚本在 Google 站点中插入/显示 Google 表单?

我的代码如下所示:

  var encontrado=0;
  for (var i=1; i < array_filas ; i++){
    if (valor == datos[i][0]){
      encontrado=1;
      App.getElementById('form').setVisible(true);
    }
  }

  if(encontrado==0){
    App.getElementById('error').setVisible(true); 
  }

我要求用户输入一个数字,如果数字正确,那么我想在 Google 站点中显示一个 Google 表单。或者至少将他重定向到 Google 表单网址。

【问题讨论】:

    标签: javascript google-apps-script insert google-forms google-sites


    【解决方案1】:

    可以将 Google 表单插入 Google 站点:

    Documentation - Google

    Google Apps 服务中有一个站点服务:

    Documentation - Google

    看起来您可以将页面动态添加到 Google 站点:

    Documentation - Sites Page

    Google 网站中的新页面的每个页面都有不同的 URL:

    https://sites.google.com/site/yourSiteName/thePageName

    我想知道这是否可以打开页面:

    Documentation - Get Page by URL

    【讨论】:

      猜你喜欢
      • 2019-04-26
      • 1970-01-01
      • 2021-02-05
      • 1970-01-01
      • 2015-12-23
      • 2018-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多