Copy data from a Google Sheet into a web form
How to copy data from a Google Sheet into a web form: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.
Here is how the automation works. To copy data from a Google Sheet into a web form, read the rows with Read data from a Google Sheet, loop through them with Loop through data, and inside the loop open the form with Go to page, type each value into its field with Enter text, and submit the form with Click element. First cell and Last cell on the read step set how many rows are entered, and a Date and time step with Write data to a Google Sheet dates each row in the sheet once it is submitted. These steps are the starting point for any data entry automation; most forms need a few more, such as a list, a date picker or a key press.
Build the form fill from a description
Describe it and click the button: the agent builds and tests the form fill in your Chrome extension. To delete each row from the sheet once it is entered instead of dating it, see automate data entry from a Google Sheet into a web form. For a Google Form, automate data entry into Google Forms shows every question type the bot fills.
- Read the rows from my Google Sheet
- Open my web form
- Match each column to a field on the form
- Click the submit button
- Loop through every row of the sheet
- Date each row in the sheet once submitted
You need the form's URL and a Google Sheet with some test data: this example has a name in column A, a surname in column B and column C empty for the date. Type sheet.new in Chrome to make one. How many rows are entered is set by First cell and Last cell on the read step: A1 to B10 enters the first ten rows, and leaving Last cell empty enters every row. The column letter of Last cell is the last column that holds data, so change the B to match your sheet: a sheet with name, surname, email and phone in columns A to D reads A1 to D10.
Build the form fill step by step
The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.
- 1.0
Read data from a Google SheetSpreadsheet: your sheetSheet name: the tab with the namesFirst cell: A1, the first row to enterLast cell: B10, the last data column and the last row to enter; change B to your last data column, and leave it empty for every row
- 2.0
Loop through data- repeats for every row in
[google-sheet-data]
- 2.1
Go to pageURL: the form's page
- 2.2
Enter textSelect text field: the name fieldText: column A of[google-sheet-data]
- 2.3
Enter textSelect text field: the surname fieldText: column B of[google-sheet-data]
- 2.4
Click elementSelect: the form's submit button
- 2.5
Date and timeSelect date: CurrentSelect format: a date format, such as YYYY-MM-DD
- 2.6
Find row in a Google SheetSpreadsheet: your sheetSheet name: the tab with the namesValues (comma separated): column A and column B of[google-sheet-data]Exact match: on
- 2.7
Write data to a Google SheetSpreadsheet: your sheetSheet name: the tab with the namesDATA:[date-and-time]Write options: Add to existing dataStarting cell:C[find-row-google-sheet], column C of the found row
- repeats for every row in
Common questions about copying a Google Sheet into a form
How do I set how many rows are entered?
With First cell and Last cell on the Read data from a Google Sheet step. A1 to B10 enters rows 1 to 10, A11 to B20 the next ten, and an empty Last cell reads to the end of the sheet. The letter is your last data column, B for two columns, D for four. Rows already dated in column C are entered again; to skip them, filter on that column as in mark Google Sheet rows as done.
Why is a row dated before the form has saved it?
The date is written as soon as the submit button is clicked, before the page has finished saving. If the form reloads the page or shows a confirmation, add a Wait step of 2000 milliseconds or so after Click element and before Date and time, so the submission completes before the row is dated.
Why does the form page reload for every row?
Because Go to page sits inside the loop, so each row starts on a fresh form. To open the page once, move Go to page above Loop through data; the form then has to be back in its starting state after each submission, which may need extra steps after Click element, such as closing a confirmation or clearing the fields.
How do I handle a form with several pages or sections?
Put the steps for each page or section of the form in a Group steps step inside the loop, and name each group after its part of the form, such as Contact details or Address. The automation then reads the way the form does, and a failed run points to the section that broke.
My sheet has a header row. How do I keep it out of the form?
Start the read below it. Set First cell on the Read data from a Google Sheet step to A2, so the header row is never passed into the loop and typed into the form.
How do I know which rows have been submitted?
Column C holds the date each row was submitted, written after the submit button is clicked. A row with no date was not submitted, so a run that stopped part way shows where it got to. To delete each row instead, see automate data entry from a Google Sheet into a web form.
How do I fill drop-downs, date pickers and checkboxes in a web form?
Add the step for each field: Select list for a drop-down, Date picker for a date, and Press key(s) for key presses. See tick checkboxes and choose options from a Google Sheet for more.
How do I pass data from one step into another?
Click Insert Data in a step's field and choose the token of an earlier step. See pass data between steps.
Why is the text typed into the wrong field?
The field selector matches a different field. Reselect the field in Select text field on the Enter text step. When a run fails, hand it to the agent and it repairs the step.
Can I copy data from a Google Sheet into a web form without code?
Yes. The form fill is ordinary no-code steps, with nothing to script: the rows are read, each value is typed into its field, the submit button is clicked and the date is written back to the row. Describe the form and the agent matches each field to a column of your sheet.
Can I copy data from Excel or a CSV file into the form instead?
Yes. Swap the first step for Read data from Excel or Import CSV File; the loop, Enter text and Click element steps stay the same. The date is written to a Google Sheet only, so leave out the last three steps or write the dates to a sheet of their own.
Where do I get help?
Get in touch with support, or ask in the axiom.ai community.
Related guides
Automate data entry from a Google Sheet into a web form
- Read the rows from my Google Sheet
- Open the contact form on my site
- Fill in the name, email and message from each row
- Submit, then delete the row from the sheet
Fill a Google Form from an Excel sheet
- Read the rows from my Excel sheet
- Open my Google Form for each row
- Fill in each question from the row
- Submit the form and go to the next row
Automate data entry into a web form from Make
- Take the rows Make sends me
- Open the contact form on my site
- Fill in each row's name, email and message
- Submit the form and go to the next row