This repo has been moved to apps-script-samples.
Templates that provide an initial, working framework for Apps Script projects.
Google Apps Script allows developers to extend and maniplate Google Docs, Sheets and Forms. For those just starting with Apps Script, it can be useful to have a template to work from -- a framework that developers can learn from and modify to suit their needs.
This collection hosts the following templates:
- Custom Functions for Sheets
- Google Docs Add-on
- Google Sheets Add-on
- Google Forms Add-on
- Script as Web App
Within these templates the following Google Apps Script concepts are illustrated:
- Dialogs and Sidebars
- Using Templated HTML
- Responding to HTTP GET requests with doGet(e)
- Using IFRAME sandbox mode
Templates can be accessed from the Apps Script editor Welcome Screen (which is shown when the editor is first opened or by clicking the "Help > Welcome screen" menu item. Selecting a template from the Welcome Screen will create a new project pre-populated with the code you need to get started.
Alternatively, the code provided in this repository can be manually copied into the Apps Script editor. Note that certain templates need to be used in a container-bound script (that is, the template is meant to be in a script attached to a Doc, Sheet or Form, rather than a standalone script).
To continue learning about how to extend Google Docs, Sheets and Forms with Apps Script, take a look at the following resources:
If you've found an error in this sample, please file an issue: https://github.com/googlesamples/apps-script-templates/issues
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
General questions about Apps Script can be asked on StackOverflow: google-apps-script on StackOverflow
General Apps Script bug reports or feature requests should be directed to the Apps Script Issue Tracker: google-apps-script-issues
Copyright 2015 Google, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.