首页 > 解决方案 > 如何将默认值传递给 field in a Google Sheets sidebar using Apps Script? I am working on a meeting check-in system using Google Sheets and Apps Script, and it does almost everything I need it to do! I learned how to pass values from a .gs script into the sid

问题描述

标签: htmlgoogle-apps-scriptgoogle-sheets

解决方案


您可以将此脚本添加到 HTML 文件的底部,该文件将在呈现后设置选择值。

<script>
  document.getElementById('role').value = '<?= memRole; ?>'
</script>

推荐阅读