I have a form created in a Google Apps spreadsheet and am trying to find some form parameter data in my script.
In the following code, I do not understand why I get the error "Invalid argument" in the line 'var myForm = FormApp.openByUrl (formURL);' although the log shows what I consider to be a valid formURL string.
function myFunction() { var ss = SpreadsheetApp.getActive(); var formURL = ss.getGetFormURL(); Logger.log('Spreadsheet\ formURL: %s', formURL); var myForm = FormApp.openByUrl(formURL);
source share