1

I have a problem with the doGet () function.If it always runs error SyntaxError: Unexpected token ')' (line 12, file "Code")

function doGet() {
  var ss = SpreadsheetApp.openByUrl(url);
  var ws = ss.getSheetByName("Data");
  var range = ws.getRange(1,1,ws.getRange("A3").getDataRegion().getLastRow(),1).getValue(); 
  
  var tmp = HtmlService.createTemplateFromFile('page');
  
  tmp.list = range;//.map(function(r){return r[0];} );
  
   return tmp.evaluate();
  
}

enter image description here Where could be the problem? Thank you for your answer.

2
  • For a more detailed answer please add a minimal reproducible example (at this time the question doesn't include the code of page.html). Commented Aug 9, 2020 at 22:28
  • 1
    Thank you for your answer..After your answer, I looked at the HTML code and found an error. thanks again for the advice. Commented Aug 9, 2020 at 22:43

1 Answer 1

1

It's very likely that the problem is in the file page.html.

Related

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.