Skip to content

Instantly share code, notes, and snippets.

View cwlind's full-sized avatar

Clark Lind cwlind

View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active September 24, 2023 12:48
Google Apps Script: Running Specific Function When Specific Sheet is Edited on Google Spreadsheet

Google Apps Script: Running Specific Function When Specific Sheet is Edited on Google Spreadsheet

This is a sample Google Apps Script for running the specific function when the specific sheet is edited.

Sample script

Please copy and paste the following script to the container-bound script of Spreadsheet and set sheets object.

// When the cells are edited, this function is run by the fire of event trigger.
@tanaikech
tanaikech / submit.md
Created September 4, 2020 06:30
Using Values Submitted from HTML Form using Google Apps Script

Using Values Submitted from HTML Form using Google Apps Script

This is a sample script for using the values submitted from the HTML form using Google Apps Script and Javascript. In this case, the values include the files.

Issue

<form>
  Text: <input type="text" name="sampleText1" /><br />
 Single file: 
@tanaikech
tanaikech / submit.md
Created August 3, 2020 05:37
IMPORTANT: reduceRight with and without v8 runtime for Google Apps Script

IMPORTANT: reduceRight with and without v8 runtime for Google Apps Script

This is an important point for using reduceRignt with and without v8 runtime for Google Apps Script.

Sample script

function myFunction() {
  var array = ["a", "b", "c", "d", "e"];
 var res = array.reduceRight(function (ar, e, i) {