title: How to pass the "e" parameters to a function called with a trigger?
body: <p>I am working on a simple spreadsheet, and need to do some operations when my form from Google Form is submitted, and the values are inserted in the spreadsheet. Reading the docs I've found that I need triggers, it all seems straightforward, but I am missing something:</p>
  
  <pre class="lang-js prettyprint-override"><code>function setIncomes(e){
   var sheet = e.source;
   sheet.getRange('a1').setNote(Object.getOwnPropertyNames(e));
   sheet.getRange('a2').setNote(e);
   var row = e.values;
  
   if(row[4] == "Vincita" || row[4] == "Stipendio"){
     //do nothing
   }else{
    row[2] = 0 - row[2];
   }
   e.range.setValue(row);
   return row;
  }
  </code></pre>
  
  <p>The important line is line <code>4</code>: <code>sheet.getRange('a1').setNote(Object.getOwnPropertyNames(e));</code></p>
  
  <p>Here I am getting (for debug sake) the list of the properties of the e object, that, according to the <a href="https://developers.google.com/apps-script/guides/triggers/events" rel="nofollow">documentation</a> should include:</p>
  
  <ul>
  <li>e.values </li>
  <li>e.range</li>
  <li>e.namedValues</li>
  </ul>
  
  <p>But all I get is:</p>
  
  <ul>
  <li>e.source</li>
  <li>e.authMode</li>
  </ul>
  
  <p>Why?</p>
  
  <p>I simply defined this function, and link it to a trigger with the apposite menù voice.</p>