有没有办法在 Google 表格对话框中使用单选按钮并使用 Google App Scripts 保存值? [英] Is there a way to use radio buttons in a Google Sheets Dialog and save the value, using Google App Scripts?

查看:41
本文介绍了有没有办法在 Google 表格对话框中使用单选按钮并使用 Google App Scripts 保存值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单地说,我的目标是突出显示一个 google 表格(源")上的单元格范围,并将其移动到另一个不同的 google 表格文档(目标").Target 有多个工作表(选项卡?),并且经常添加新工作表.

My goal, simply put, is to highlight a cell range on one google sheet (the 'source') and move it to another, different google sheet document (the 'target'). The Target has multiple sheets(tabs?) and new ones are added often.

重要提示:需要明确的是,我不是在同一个文档中从一张纸复制到另一张纸.我正在从一个 google sheet 文档复制到一个复杂的不同的 google sheet 文档.

IMPORTANT: To be clear, I am NOT copying from one sheet to another sheet, in the same document. I am copying from one google sheet document, to a complexity different google sheet document.

目前,我的代码允许用户:

Currently, I have code that allows users to:

  1. 在 SOURCE google 表格中突出显示单元格范围.
  2. 选择自定义菜单选项.
  3. 选择自定义菜单选项后,突出显示的单元格区域中的数据将复制到 TARGET google 工作表.

目前,目标"是硬编码的.

Currently, the the "Target" is hardcoded.

我想做的是建立一个单选按钮列表.目标 google 工作表中存在的每个工作表都有一个单选按钮.当用户按下确定"按钮时,允许用户选择一个,然后将数据移动到该特定工作表.

What I want to do is to build a Radio Button list. One Radio Button for every Sheet that exists in the TARGET google sheet. Allow the user to choose one, then move the data to that specific Sheet, when they press the "OK" button.

我已经搜索了一段时间,但我什至找不到任何关于将单选按钮放在 google sheet 对话框中的信息,更不用说根据另一个 google sheet 文档中存在的工作表构建单选按钮列表了.

I've searched for a while, but I'm unable to find anything about even putting radio buttons in a google sheets dialog, let alone build the radio button list based on sheets that exist in another google sheet document.

推荐答案

结束这个问题,因为我现在知道需要使用 HTML.

Closing this question, as I now know HTML needs to be used.

这篇关于有没有办法在 Google 表格对话框中使用单选按钮并使用 Google App Scripts 保存值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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