Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4c9ee2b

Browse files
ibsenvalathmckennapsean
authored andcommitted
fix #65 by calling the active spreadsheet directly
1 parent d1bdc6f commit 4c9ee2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎google-apps-script.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function setup() {
4545
function record_data(e) {
4646
Logger.log(JSON.stringify(e)); // log the POST data in case we need to debug it
4747
try {
48-
var doc = SpreadsheetApp.openById(SCRIPT_PROP.getProperty("key"));
48+
var doc = SpreadsheetApp.getActiveSpreadsheet();
4949
var sheet = doc.getSheetByName('responses'); // select the responses sheet
5050
var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues()[0];
5151
var nextRow = sheet.getLastRow()+1; // get next row

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /