title: newTrigger from Google appscript
body: <p>In an appscript bound to <code>FormApp</code>, I'm trying to add a <code>onFormSubmit</code> trigger on the spreadsheet configured as destination of the form, but I neither see spreadsheet as event source from the 'Resources' menu (in script editor) nor can get <code>.newTrigger</code> working programmatically.</p>
  
  <p>When <code>Script.newTrigger('myFunc').forSpreadsheet(sheetId).onSubmit()</code> is added in function bound to a menu item (when menu item is clicked), this <code>.newTrigger</code> call seems to be successful, but without any effect.</p>
  
  <p>I can't see the new trigger anywhere in the script editor (through 'Resources' menu), and when the form is submitted, <code>myFunc</code> is not fired. Checking <code>ScriptApp.getProjectTriggers().length</code>, it's still 0.</p>
  
  <p>Is any way to do that? Is it a known limitation (not mentioned clearly in the doc btw)?</p>