title: HTML Form Data to Google spreadsheet
body: <p>I looked at various prior posted entries about submitting HTML form data to that of a Google Spreadsheet using JavaScript. Google Spreadsheet has however changed quite a bit since the prior posts and the way that <code>&lt;input&gt;</code> <a href="https://www.youtube.com/watch?v=cOgUder1B6k" rel="nofollow noreferrer">entries work</a>, so I'm not sure how to get my form to write to the Google Spreadsheet. I essentially followed the solution from this <a href="https://stackoverflow.com/questions/28914542/html-input-field-to-google-spreadsheet">URL</a>.  My code is as the following below. Does anyone have suggestions on how to resolve? The issue is with the missing entry fields. My form only has an id=firstname and id=lastname, so pretty straight forward to start out simple. Thanks in advance for you looking.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
      $('#emailForm').one('submit',function(){
      var inputField = encodeURIComponent($('#emailForm').val());
      var baseURL = 'https://docs.google.com/a/google.com/forms/d/1RZYnGjYAMjl6LMXLdsWZgb9S3NqXZSO000tD2eObhLc/formResponse';
      var submitRef = '&amp;submit=Submit';
      var submitURL = (baseURL + emailAddress + submitRef);
      $(this)[0].action=submitURL;
      $('#email').addClass('active').val('Thank You!');
  setTimeout(function(){
    $('#form-container').hide();
    $('#update-form').animate({'width': '0px'},300,function(){
          $('#get-updates-link').hide();
            $('#email-submit').addClass('active').val('Thank You!');
        });
      },1000);
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form id="emailForm" action="https://docs.google.com/a/google.com/forms/d/1RZYnGjYAMjl6LMXLdsWZgb9S3NqXZSO000tD2eObhLc/formResponse"&gt;
  
    &lt;input id="firstname" type="text" placeholder="enter firstname" name="firstname"&gt;
    &lt;input id="lastname" type="text" placeholder="enter lastname" name="lastname"&gt;
    &lt;button id="email-submit" type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>