Note that there are some explanatory texts on larger screens.

plurals
  1. POSubmit a Form using Google App Script's HtmlService
    primarykey
    data
    text
    <p>I am having issues calling the server side GAS function on form submission in a html form that was created using HtmlService. The HtmlService documentation says that the following should work:</p> <pre><code>&lt;form id='myForm'&gt; &lt;input name='myFile' type='file'&gt; &lt;input name='aField'&gt; &lt;input type='button' onclick='google.script.run.processForm(this.parentNode)'&gt; &lt;/form&gt; </code></pre> <p>I'm using something similar:</p> <pre><code>&lt;form id='approveForm'&gt; &lt;b&gt;Enter Notes about this Approval : &lt;/b&gt; &lt;br /&gt;&lt;br /&gt; &lt;textarea id = 'approvalNotes' rows='10' cols='135'&gt;Enter notes on this approval for future reference...&lt;/textarea&gt; &lt;br /&gt;&lt;br /&gt; &lt;b&gt;Request Approved?&lt;/b&gt; &lt;br /&gt;&lt;br /&gt; &lt;input name = "decision" type="radio" id = 'rApproval' value='Yes'/&gt;Yes&lt;br /&gt; &lt;input name = "decision" type="radio" id = 'rApproval' value ='No'/&gt;No&lt;br /&gt; &lt;input name = "decision" type= "radio" id = 'rApproval' value='Pending'/&gt;Pending&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;b&gt;Set the Group/List Type : &lt;/b&gt; &lt;br /&gt;&lt;br /&gt; &lt;input name = "gltype" type="radio" id = 'glType' value='Group'/&gt;Group&lt;br /&gt; &lt;input name = "gltype" type="radio" id = 'glType' value='List'/&gt;List&lt;br /&gt; &lt;input name = "gltype" type="radio" id = 'glType' value='?'/&gt;?&lt;br /&gt; &lt;br /&gt; &lt;input type='button' value='submit' onclick='google.script.run.processForm(this.parentNode)'&gt; &lt;/form&gt; </code></pre> <p>And though I have done almost the same thing that the documentation says will work for form submissions, my server side function doesn't get called. Can someone tell what I may be doing wrong and how I may be able to fix this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload