Hi Eric,
What I would recommend is that you get the form to store all responses directly into a Spreadsheet and then put the script on the spreadsheet and let it copy over the specific cells you want to your specific spreadsheet. This makes it much easier to troubleshoot problems and to retrieve any data in case your script fails to run for whatever reason.
I would not bother defining code to activate the trigger. It is a simple task to define it manually via the new editor. A programmatic definition of triggers is great if you need to change the triggers during execution (it does not sound like you need to in your case).
The triggered function will get an event object which will define what row/data/etc.. was added as a result of the triggered event. So do use the event object to help you track down the changes easier.
Here is a simple example of what your triggered function could look like:
function trigOnSubmit(e)
{
var s = SpreadsheetApp.getActiveSheet(); // this is how you should grab the sheet where data is entered
var row = e.range.getRow(); // this is the row number where data was entered.
var dataEntered = e.values; // values is all the data that was entered into spreadsheet.
var dest = SpreadsheetApp.openById("Sheet ID").getSheetByName("OpenSO");
dest.appendRow(dataEntered); // this will add a row at bottom of your sheet with all values entered
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/912c3d09-f007-4f2f-8e09-169fe93d5c1dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/fe9d8c01-5005-4957-b1c6-aecc81a875f3n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/e3694348-eae0-4fa0-981a-31aa1df9cff8n%40googlegroups.com.