Google 幻灯片 API 单击元素时激活脚本

Google Slides API activating script on click of element

我正在尝试使用 google 幻灯片创建一个分支场景,想法是查看 the presentation 的人可以单击按钮并查看他们选择的结果。

前几张幻灯片很简单,一对一,所以我可以在幻灯片中使用 "link" 功能。

棘手的部分是一旦您进入幻灯片 3。我希望通过单击 "course of action" 选项将他们定向到的幻灯片基于所有当前选择的选项。

这就是我遇到的问题 - 我需要弄清楚如何在演示模式下与幻灯片进行交互(单击)触发脚本。

关于如何在 Google 幻灯片中完成此操作的任何建议?

目前 Google Apps Script 的幻灯片服务和 Google Slides REST API 不包含在单击元素时调用脚本的方法。此功能仅包含在 Google 个工作表 (Clickable images and drawings in Google Sheets)

注意:Google 的官方文档很少包含有关缺失功能的页面。可能有人已经通过 official Issue Tracker. If so, you could star that issue to get notifications about changes on it. Another place to monitor is the G Suite Developers Blog and the Google Apps Script release notes.

提交了功能请求