Skip to content

Instantly share code, notes, and snippets.

@tansaku
Created October 26, 2012 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tansaku/3959433 to your computer and use it in GitHub Desktop.
Save tansaku/3959433 to your computer and use it in GitHub Desktop.
Google App Script Form Processing
function processForm(params) {
var ss = SpreadsheetApp.openById(csc3211fall2012_ss);
var email_sheet = ss.getSheetByName('Week '+(parseInt(params['week'],10)+1)+' Assignments');
var range = colName(parseInt(params['assignment'],10)+1) + (parseInt(params['match'],10)+1);
var existing_val = email_sheet.getRange(range).getValue()
email_sheet.getRange(range).setValue(existing_val+ params['submission']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment