This file contains 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 onSubmit(e) { | |
var formResponse = e.response; | |
var respondant = formResponse.getRespondentEmail(); | |
var user = AdminDirectory.Users.get(respondant); | |
var userManager, a; | |
for (a = 0; a < user.relations.length; a++) { | |
if (user.relations[a].type == 'manager') { | |
userManager = user.relations[a].value; | |
} |
This file contains 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
//Any option added in other by a user who submits the form is then avaialbe in the explicit options for other users. | |
//This by default acts on all checkbox and multiple choice responses in the form. Make sure each has at least one option | |
//other than "other" to begin with or else you're gonna have a bad time. | |
function onSubmit(e) { | |
var formResponse = e.response; | |
var itemResponses = formResponse.getItemResponses(); | |
var item, itemAsItemType, choices, choicesStrings, io, response, a, b; | |
for (a = 0; a < itemResponses.length; a++) { |