Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
How to move row to another sheet base on typed by user id? Google Script, HTML

When user clicks button "delete",I want to selected row is moving to another sheet

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);
}

GOOGLE SCRIPT

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;    
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!