title: return data from showModalDialog
body: <p>I would like to continue working with the data from the ModalDialog in the function abfrage().It is important that I get the data there I want to return it.i would like to create a loop with several input fields later on html, so i don't write this on the html page.</p>
  
  <pre><code>function abfrage(){
    let count = 1;
    let html = '&lt;input type="text" name="text"&gt;';
    var t = HtmlService.createTemplateFromFile('dialogForm');
    let dialog = ui.showModalDialog(t.evaluate(), 'Hello');
  }
  </code></pre>
  
  
  
  <h3>dialogForm.html</h3>
  
  <pre><code>&lt;!DOCTYPE html&gt;
      &lt;html&gt;
        &lt;head&gt;
          &lt;base target="_top"&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;h1&gt;Userform&lt;/h1&gt;
          &lt;table&gt;
          &lt;?!= html ?&gt;
          &lt;/table&gt;
          &lt;input type="button" value="Close" onclick="google.script.host.close()" &gt;
          &lt;input type="submit" value="Submit" class="action"&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>