Hello Jed,
Chirag Patel
1

Hi Chirag- the two header rows are necessary for the way the current script works, though you can easily hide the first row from within the UI, and it will still be there for the script to you. Just select the row, right-click, and choose “hide row.”

As for sending the data to different sheets, you’ll need to tweak a bit of code. On line 18 of the original script, it has this:

var sheet = SpreadsheetApp.openById(getId()).getSheets()[0];

First, change that to:

var sheet;
if (req.parameter.sheet) {
 sheet = SpreadsheetApp.openById(getId()).getSheetByName(req.parameter.sheet); 
} else {
 sheet = SpreadsheetApp.openById(getId()).getSheets()[0];
}

And make sure to republish the script. Then, when you set the webhook in Wufoo, you need to add this bit to the end of the URL:

?sheet=sheetname

where “sheetname” is the name of the sheet you want to send data to.

Hope that helps!