1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Googre fromのGASでgetResponseが使えない

1
Last updated at Posted at 2019-02-08

TL;DR

そんなものは無い。

function onFormSubmit(e){
  Logger.log(Object.keys(e.response));
}
/* 
=> [
    getGradableResponseForItem, 
    submit,
    withItemResponse,
    getResponseForItem,
    getRespondentEmail,
    withItemGrade, getId,
    toPrefilledUrl,
    getGradableItemResponses,
    getItemResponses,
    getEditResponseUrl,
    getTimestamp,
    toString]
*/

getItemResponsesで回答一覧が取れる

リストで変えるので、インデックスで好きな質問にアクセスできます。

function onFormSubmit(e){
  Logger.log(e.response.getItemResponses()[0].getResponse());
}

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?