Cuando el usuario hace clic en el botón "eliminar", quiero que la fila seleccionada se mueva a otra hoja
HTML
function Dialo() { let a_id_form ={} a_id_form.input = document.getElementById("id").value google.script.run.withSuccessHandler(a => { if (confirm("Do you wanna delete?")) { alert("Deleted"); } else { alert("Not Deleted"); } }).moveToArchive(a_id_form); }GUIÓN DE GOOGLE
function moveToArchiwum(Dialo){ let nR = searchId(Dialo.input); let copyToArch = {}; copyToArch.id = sheet_spis.getRange(nR, column_id).copyTo(sheet_archive.getRange(lastRow, archive_column_id), SpreadsheetApp.CopyPasteType.PASTE_VALUES, false); return copyToArch; }