Convika

Още не е на български, затова е на английски.

How do I send an HTML form to Google Sheets?

Quick answer

To send an HTML form to Google Sheets with code, write an Apps Script `doPost` function that appends a row, deploy it as a web app, and point the form's `action` at the web app's URL. To skip the script, publish the page on Convika and click **Connect this form**: the form you already have saves every answer, emails you each one, and downloads as a CSV that Google Sheets imports with **File > Import**, or sends each entry to a webhook that adds a row through Zapier, Make, or n8n. The Free plan shows 50 entries a month, with no credit card.

Make my form save answers

Free plan: no credit card, 1 published page, 50 form entries a month shown.

On this page

There are 2 ways to get an HTML form's answers into Google Sheets. With code, a Google Apps Script web app receives the form's POST and appends a row; you write the script, deploy it, and keep its URL in the form. Without code, publish the page on Convika and click Connect this form: the form you already have saves every answer and emails it to you, and the list downloads as a CSV that Google Sheets opens with File > Import. Your form keeps its fields and look either way.

Send a form to Google Sheets with Apps Script

Apps Script runs a function called doPost whenever something sends the script an HTTP POST, as Google's web apps guide describes. That function can write to the spreadsheet the script belongs to.

Write the script

In the spreadsheet, put your column names in row 1 of a sheet named Responses, such as Time, name, email, and message. Then open Extensions > Apps Script and paste:

function doPost(e) {
  const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Responses");
  const p = e.parameter;
  sheet.appendRow([new Date(), p.name, p.email, p.message]);
  return ContentService.createTextOutput("Thanks, your answer was saved.");
}

e.parameter holds each field of the form by its name, and appendRow adds them after the last row. A web app's doPost has to return an HTML or text output, which is the ContentService line.

Deploy it as a web app

Google's steps: at the top right of the script project, click Deploy > New deployment, next to "Select type" choose Web app, fill in the deployment configuration, and click Deploy. Run the app as yourself, so it writes to your sheet, and let anyone reach it, so visitors without a Google account can send the form. Google asks you to authorize the script to edit your spreadsheets the first time. Copy the web app URL, which ends in /exec.

Point the form at it

<form method="post" action="https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID/exec">
  <input name="name" required>
  <input name="email" type="email" required>
  <textarea name="message"></textarea>
  <button type="submit">Send</button>
</form>

Each field's name must match a key the script reads. When a visitor presses Send, the browser leaves your page for the script's reply, the "Thanks, your answer was saved." line on a blank page. Keeping them on your page takes a JavaScript fetch call in place of the plain form post.

Why the Apps Script form stops working

The form works until one of these changes, and none of them shows an error to you:

  • Your edits don't reach the live form. Google's deployments guide says that when you change the code, "the head deployment reflects those changes while the versioned deployment remains intact." The /exec URL in your form keeps running the old version until you open Deploy > Manage deployments, click Edit, and pick a new version.
  • A new deployment is a new address. "A deployment has a unique URL or ID." Click New deployment a second time, and the form still posts to the first one.
  • Access and authorization. A web app that runs as the person visiting it, or that only signed-in users can reach, asks each visitor to sign in to Google before the row is written.
  • Quotas. Google's quotas page caps a script at "30 / user" simultaneous executions and "6 min / execution", on free and Workspace accounts alike.
  • Field names drift. Rename a field in the HTML, or let an AI rewrite the page, and the script writes an empty cell for the name it no longer finds.

Each fix means opening the script editor again. For a form on a page an AI made, the second way below needs no script at all.

Keep your form and collect answers without a script

Take the action out of the form

If your form already posts to Apps Script or another service, remove its action so it reads <form method="post">. Connect this form wires a form that sends nowhere, and leaves a form that posts elsewhere as it is. A page whose script sends data with fetch stays as it is too, so remove that script as well. Ask your AI: "Make the form a plain <form method="post"> with no action and no JavaScript." The rest of the page, its styles included, stays the same.

Upload the page

Drop the .html file into the upload box at the top of this page, or paste its code, and click Get my preview link. Click Keep this page — free, no card and sign up, and the page moves into your account. Already signed up? On the dashboard, select Upload an HTML file, choose Upload a file or Paste code, and click Create my preview. Files can be up to 4 MB.

Connect the form

On the page's screen, Convika shows A form on this page sends entries nowhere. Click Connect this form. Convika saves a new preview version whose form sends each entry to Convika, with your fields, labels, and styles as you wrote them. Visitors stay on your page and see "Thanks — your details were sent." where the form was.

Send a test from the preview

Click Open preview, fill in the form, and send it. Test entries in a preview aren't saved, so the list stays clean.

Publish

Click Publish page. Under Who can open this page?, choose Public and click Next. The first time, click Publish free: the page goes live with the Convika bar at an address like yourpage.convika.page. To publish without the bar, click Publish without the Convika bar under Publish free. It starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends.

From then on, every entry arrives as an email whose subject reads "New form entry on" and your page's name, and joins the list under Forms. Click reply on the email, and your answer goes to the address the visitor typed.

Get the answers into Google Sheets

Import the CSV

  1. On the page's screen, click View entries under Forms, then Download CSV.
  2. In Google Sheets, click File > Import, and choose the CSV file.
  3. Under the import location, choose Create new spreadsheet the first time. For later downloads, choose Replace current sheet to load the full list again.

Google's import help lists .csv among the file types Sheets imports and Detect automatically for the separator. Each field of your form is a column, and each entry is a row. Download JSON saves the same list for code. Export is on every plan.

Add a row for every entry through a webhook

On the form's entries page, paste an https URL under Send each entry to a URL (webhook) and click Save URL. Convika POSTs each entry to it as JSON, signed with a secret it shows you. Use the webhook URL of a Zapier, Make, or n8n flow whose next step adds a Google Sheets row, and each entry lands in your sheet as it arrives. Send a test entry checks the flow before anyone fills in the form.

Which way fits

Apps Script web appGoogle FormsYour form on Convika
SetupWrite doPost, deploy as a web app, put the URL in the formBuild the form in Google's editorUpload the page, click Connect this form
CodeYes, the script and its field namesNoneNone
Your own page designYesGoogle's form layout, with a themeYes, your HTML as written
Visitor stays on your pageOnly with a fetch scriptAt a docs.google.com/forms link, or in a frame on your pageYes, with a thank-you line in place of the form
Where answers liveYour sheetThe form's Responses tab and a linked sheetYour Convika dashboard, as CSV and JSON, and your sheet through import or a webhook
Limits"30 / user" simultaneous runs, "6 min / execution""500k responses per form" and 1 GB of storage, from September 2026Free shows 50 entries a month; Pro has no monthly cap

Google's figures are from its pages linked above, read on November 23, 2026, and its Forms help on limits, checked on November 17, 2026. Google Forms sends answers to Sheets from Responses > More > Select destination for responses (Google's help). For a Google Form placed on your own page, see embedding a Google Form in HTML; for other form tools, Google Forms alternatives and Formspree's free plan.

Skipbox

Cheap & fast GitHub Actions runners, unlimited for $39 a month

Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.

Start a free Skipbox trial⁠

Frequently asked questions

Can an HTML form write to Google Sheets directly?

Not by itself. A form sends its answers to a URL, and Google Sheets has none that takes a form post. An Apps Script web app is that URL: its doPost function receives the form and appends a row. Without a script, collect the answers on Convika and import the CSV into Sheets, or send each entry to Sheets through a webhook.

Is there a free way to send form data to Google Sheets?

Yes. Apps Script is free with a Google account, within its quotas. Convika's Free plan hosts the page, connects its form, and shows and emails 50 entries a month, with CSV export and the webhook, and no credit card.

Why does my Apps Script form return an error or not save?

Check these in order: the form's action is the /exec URL of the deployment you're editing; the deployment runs the latest version (Deploy > Manage deployments, Edit, new version); the web app lets anyone reach it; and each field's name matches what the script reads. Google's test URL ending in /dev "always runs the most recently saved code and is only intended for testing during development."

How do I save HTML form data in Google Sheets using JavaScript?

Send the form with fetch to the Apps Script web app's /exec URL, with the fields as FormData, and read them in doPost through e.parameter. The visitor stays on your page. On Convika, no JavaScript is needed: Connect this form adds the send and the thank-you line for you.

My form was made by ChatGPT or Claude. Does this work?

Yes. Upload the page as it is and click Connect this form. If the AI wrote a script that pretends to send, or an action to a placeholder URL, ask it for "a plain <form method="post"> with no action and no JavaScript" first. Why a form on an AI-made page doesn't send covers the other cases.

Next step

How to see who visits a page you made with AI

Convika shows a page's visits, sources, and button clicks with no tag. GA4, Plausible, Clarity, and Cloudflare: free tier, tag, and source report.

Related articles

More on forms and visitor stats

Share this article

Collect your form's answers without a script

Upload the page and click Connect this form. Convika saves every answer, emails you, and exports a CSV for Google Sheets.

Make my form save answers

Free plan: no credit card, 1 published page, 50 form entries a month shown.