Google App脚本:从另一个脚本中运行脚本? [英] Google App Script: Run script from within another script?

查看:123
本文介绍了Google App脚本:从另一个脚本中运行脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的公司开发一个薪资Web应用程序。我想知道是否有另一个脚本中运行脚本。比如有一个超链接或类似的东西,用户可以去看看不同的用户界面和所有东西。如果这是不可能的,是否有人知道如何将HTML表单的副本提交给电子邮件?我一直在尝试这样做,但GAS在发送表单之前删除了填充表单的样式和JavaScript代码。我只需要至少一张表格图像,以便经理可以打印出来并签名。



谢谢



这不是Apps脚本剥离你的电子邮件形式的这东西。电子邮件客户端(包括Gmail)故意不支持复杂的HTML。如果你想要一个图片,试着用DocumentsApp创建一个Google Doc,用document.getAs(application / pdf)将它转换为pdf,然后通过电子邮件发送。


I am working on a payroll web app for my company. I was wondering if there is anyway to run a script from within another script. Such as having a hyperlink or something similar that the user could go and see a different UI and everything. If this is not possible, does anyone knows how to submit a copy of a html form to an email? I been trying to do this but GAS removes the styles and the JavaScript code that fills the form before sending it. I just need at least an image of the form so the manager could print it out and sign it.

Thanks

解决方案

Yes, you can link from one script to another using regular anchors.

It's not Apps Script stripping your emailed form of this stuff. Email clients, including Gmail, intentionally don't support complex HTML. If you want an image, try creating a Google Doc with the DocumentsApp, converting it to pdf with document.getAs("application/pdf") and then emailing that.

这篇关于Google App脚本:从另一个脚本中运行脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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