简体   繁体   English

Google App脚本:从另一个脚本中运行脚本吗?

[英]Google App Script: Run script from within another script?

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. 例如具有超链接或类似内容,用户可以去查看不同的UI和所有内容。 If this is not possible, does anyone knows how to submit a copy of a html form to an email? 如果无法做到这一点,是否有人知道如何将html表单的副本提交给电子邮件? I been trying to do this but GAS removes the styles and the JavaScript code that fills the form before sending it. 我一直在尝试执行此操作,但是GAS在发送之前会删除填充表格的样式和JavaScript代码。 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. 这不是Apps Script删除您通过电子邮件发送的表格。 Email clients, including Gmail, intentionally don't support complex HTML. 电子邮件客户端(包括Gmail)有意不支持复杂的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. 如果您需要图像,请尝试使用DocumentsApp创建Google Doc,然后使用document.getAs(“ application / pdf”)将其转换为pdf,然后通过电子邮件发送。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM