简体   繁体   中英

How to use the modal form data in the google apps script functions?

So, I got a google apps script, which collect the content from the user selected range and also from the form data opened in the modal.

With the script finished, I can't handle the data from the modal. How to do that?

function main() {
  showForm();
}

Try

  function getData() {
    var data = document.forms[0]
    var tab = []
    for (var i=0;i<data.length;i++){
    if (data[i].type != "button"){
        tab.push(data[i].value)
      }
    }
    google.script.run.saveData(tab);
    // document.forms[0].reset()
  }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM