简体   繁体   中英

What is returned from a GridItem in Google Forms, Apps Script

I have a gridItem in my google form named "Policy Markers". What is returned at the end of a Form Submit trigger. For instance...

function onSubmit(e) {
var AnswerObject = e.namedValues();
var PolicyMarkers = AnswerObject['Policy Markers'];
// What is Policy Markers? Is it a single-dimension array?
...
}

Have you tried logging its value? You will be able to see the contents of your object in the Logs upon submission.

function onSubmit(e) {
  var AnswerObject = e.namedValues();
  var PolicyMarkers = AnswerObject['Policy Markers'];
  Logger.log(JSON.stringify(PolicyMakers, null, 4))
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM