This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Main Function to get submitted Google Form data. | |
| * | |
| */ | |
| function getFormData(e) { | |
| // get all values from submitted Form | |
| var originalNamedValues = e.namedValues; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Code for: Publish a Google Form to your domain | |
| * | |
| * DEVELOPED BY THE GIFT OF SCRIPT: https://www.pbainbridge.co.uk/ | |
| */ | |
| function setAnyoneInDomain() { | |
| // Form ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main(e) { | |
| // get all data from Google Form submission | |
| var formValues = e.namedValues; | |
| // get email address | |
| var emailAddress = formValues["Email address"][0]; | |
| console.log("Email address is: " + emailAddress) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This script creates the menu item that can easily be selected to run the Function. | |
| */ | |
| function onOpen() { | |
| SpreadsheetApp.getUi() | |
| .createMenu('Admin') | |
| .addItem('Collate and Create', 'collateData') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Get all Sheet data, call Function to Objectify, then loop through rows and log some items. | |
| */ | |
| function getPrettyData() { | |
| // get spreadsheet | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| // get active sheet and log name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function replaceTextToImage() { | |
| // ******************** COMPLETE THESE ITEMS ******************** | |
| var searchText = ""; | |
| var imageURL = ""; | |
| var rowHeight = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A number of Global Variables to speed up repetitive automation. | |
| */ | |
| var theSpreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| var timeZone = theSpreadsheet.getSpreadsheetTimeZone(); | |
| var logSheet = theSpreadsheet.getSheetByName("Log"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getFormData(e) { | |
| // get Spreadsheet TimeZone | |
| var timeZone = SpreadsheetApp.getActiveSpreadsheet().getSpreadsheetTimeZone(); | |
| // get Form data | |
| var formValues = e.namedValues; | |
| // get specific values from Form ****************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Code to learn about Exponential Backoff. | |
| * Developed when experiencing 'Rate Limit' issue with updating a Calendar Event of Attendees. | |
| * | |
| * DEVELOPED BY THE GIFT OF SCRIPT: https://www.pbainbridge.co.uk/ | |
| */ | |
| function mainFunction() { |
NewerOlder