I am trying to modify a little script to email myself the results of a Google Form. The script is working in its basic form, but I can't seem to be able to retrieve the value from a cell and copy it in the subject field.
Here is what I am trying:
var lastRow = SpreadsheetApp.getActiveSheet().getMaxRows();
var title = SpreadsheetApp.getActiveSheet().getRange(lastRow, 2).getValues();
var subject = "Todo List: " + title;
The script stops working though, when I do that :) Any idea why? Thanks