title: How can I run a script only when someone adds new rows
body: <h1>Situation:</h1>
  
  <p>I have the following script, that runs in OnEdit, but I want to tune this script to run only when someone adds new rows to the sheet.</p>
  
  <h1>Script:</h1>
  
  <pre><code>function DataValidation2(e)
  {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var s = ss.getActiveSheet();
    if (s.getName() == "Sheet1"){
    var cell = s.getRange('C3:C');
    var rule = SpreadsheetApp.newDataValidation().setAllowInvalid(false).requireValueInList(['0:15:00', '0:20:00']).build();
    cell.setDataValidation(rule);
    }
  }
  </code></pre>
  
  <p>If possible execute this script only when someone add new row using the boton add include at the end of the sheet?</p>
  
  <p>Best Regards,</p>