Copy link to clipboard
Copied
Hello,
I setup a form with a submit button. That submit button links to a Google Form submission. I got it connected correctly where new rows are being entered into the form, but all I get is a time stamp. It won't take the data entered.
I started simple with just one text field. See screenshot below
Copy link to clipboard
Copied
When setting up a form with a submit button that links to a Google Form, you want to ensure that each form field corresponds correctly to the fields in the Google Form. If you are only getting timestamps and not the entered data, it's likely that the data isn't being properly sent to the Google Form. Here are some steps to ensure the data is submitted correctly:
Verify Field Names and IDs: Ensure that the form fields in your HTML form have the correct name attributes that correspond to the entry IDs of the Google Form. Each Google Form field has a unique entry ID that you need to match in your form.
Check Form Action URL: Ensure that the form action URL is correctly set to the Google Form URL.
Use the Correct Method: Make sure the form uses the POST method to send data to the Google Form.
Here's an example of how your form should look:
<!DOCTYPE html>
<html>
<head>
<title>Submit Form to Google Forms</title>
</head>
<body>
<form action="https://docs.google.com/forms/d/e/YOUR_GOOGLE_FORM_ID/formResponse" method="POST">
<label for="name">Name:</label>
<input type="text" name="entry.1234567890" id="name" required>
<br>
<label for="email">Email:</label>
<input type="email" name="entry.0987654321" id="email" required>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Assuming you have a Google Form with fields for "Name" and "Email", and their corresponding entry IDs are entry.1234567890 and entry.0987654321 respectively, your HTML form should look like this:
<!DOCTYPE html>
<html>
<head>
<title>Submit Form to Google Forms</title>
</head>
<body>
<form action="https://docs.google.com/forms/d/e/YOUR_GOOGLE_FORM_ID/formResponse" method="POST">
<label for="name">Name:</label>
<input type="text" name="entry.1234567890" id="name" required>
<br>
<label for="email">Email:</label>
<input type="email" name="entry.0987654321" id="email" required>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Replace YOUR_GOOGLE_FORM_ID with the actual ID from your Google Form URL.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now