title: Both Google Sheets scripts work, but don't work when both added
body: <p>I have 2 different scripts, the first one copies the row when I select the name of the sheet from the drop down list and pastes it on the sheet with that name, the second script is a checkbox that when ticked then copies the entire row to another sheet and deletes it from the original sheet. So after I have first selected the option from the dropdown menu and then ticked the checkbox that row should be copied to 2 different sheets.</p>
  <p>My trouble is that although both these scripts work when they're on their own, they don't work when I have them both.</p>
  <p>Script 1</p>
  <pre><code>function onEdit(e) {
  var sh=e.range.getSheet();
  if(sh.getName()=='Approval' &amp;&amp; e.range.columnStart==11)  {
  var v=sh.getRange(e.range.rowStart,1,1,sh.getLastColumn()).getValues();
  var tsh=e.source.getSheetByName(e.value);
  if(tsh) {
    tsh.getRange(tsh.getLastRow() + 1,1,1,v[0].length).setValues(v);
    }
   }
  }
  </code></pre>
  <p>Script 2</p>
  <pre><code>function onEdit(event) {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var s = event.source.getActiveSheet();
  var r = event.source.getActiveRange();
  
  if(s.getName() == &quot;Approval&quot; &amp;&amp; r.getColumn() == 12 &amp;&amp; r.getValue() == true) {
  var row = r.getRow();
  var numColumns = s.getLastColumn();
  var targetSheet = ss.getSheetByName(&quot;ZSD Sheet&quot;);
  var target = targetSheet.getRange(targetSheet.getLastRow() + 1, 1);
  s.getRange(row, 1, 1, numColumns).moveTo(target);
  s.deleteRow(row);
   }
  }
  </code></pre>
  <p>I've looked at script merging but it's going waaaaaaay over my head so any help is hugely appreciated.</p>