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 <input>
entries work, so I'm not sure how to get my form to write to the Google Spreadsheet. I essentially followed the solution from this URL. 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.
<html>
<head>
<script>
$('#emailForm').one('submit',function(){
var inputField = encodeURIComponent($('#emailForm').val());
var baseURL = 'https://docs.google.com/a/google.com/forms/d/1RZYnGjYAMjl6LMXLdsWZgb9S3NqXZSO000tD2eObhLc/formResponse';
var submitRef = '&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);
</script>
</head>
<body>
<form id="emailForm" action="https://docs.google.com/a/google.com/forms/d/1RZYnGjYAMjl6LMXLdsWZgb9S3NqXZSO000tD2eObhLc/formResponse">
<input id="firstname" type="text" placeholder="enter firstname" name="firstname">
<input id="lastname" type="text" placeholder="enter lastname" name="lastname">
<button id="email-submit" type="submit">Submit</button>
</form>
</body>
</html>