I use a script in my SpreadSheet to add row below the active one and copy there content from active row. On PC I can trigger the script via image/drawing and it works nicely. But I cannot figure out how to make it work in iOS app where trigger from image doesn't work and where copying content from one to another is nightmare. I tried onEdit and isChecked for each line but it would give me new row on every edit. Could you help, please?
function addRow() {
var sheet = SpreadsheetApp.getActiveSheet(),
row = sheet.getActiveCell()
.getRow(),
rangeToCopy = sheet.getRange(row, 1, 1, 20);
sheet.insertRowAfter(row);
rangeToCopy.copyTo(sheet.getRange(row + 1, 1));
}
https://docs.google.com/spreadsheets/d/12WErwXRn6yPvG8FuR-DwltaSC-Fuk7aTB2NrJWMKFQ4/edit?usp=sharing