How to prefill Zoho Forms with data from Zoho Sheet using webhooks
Zoho Forms allows you to dynamically prefill form fields with data fetched from external sources. One popular use case is pulling customer data stored in a Zoho Sheet and pre-populating your forms when the user opens them. This feature is especially useful when you already have existing records, such as employee detail, stored in Zoho Sheet, and you want to prefill forms based on a unique identifier. You want employees to simply enter their Employee ID in a Zoho Form, and have the rest of their information like name, email, and department—automatically filled in from the Zoho Sheet.
Check out a quick video on how to configure this.
Lets assume you have a Zoho Sheet with the employee data below.

- In your Zoho Forms account, click Control Panel in the left panel.
- Under Developer Space, click Connections.
- Click Create Connection.

- From the list of services, choose Zoho Sheet.

- Enter a Connection Name (ZohoSheet).

- Under Scope, select ZohoSheet.data.API.READ. This allows Zoho Forms to read data from Zoho Sheet.

- Click Create and Connect. Grant permission when prompted, allowing Zoho Forms to access data from Zoho Sheet.

- Once connected, you can view the connection summary.

- Open your form builder, go to Settings > Form Settings > Prefill > Dynamic Prefill - Webhook.

- Click Configure.

- Under Webhook Settings:
- Search Field: Select the field that will be used to look up the record in your Zoho Sheet (for example, Employee ID).

- Webhook URL:
- Copy the Zoho Sheet API base URL from Zoho Sheet API documentation.

- In your webhook configuration, paste this URL (https://sheet.zoho.com/api/v2/) in the Webhook URL field.

- Go to your Zoho Sheet, copy the Sheet ID from the URL, and append it at the end of the above link as https://sheet.zoho.com/api/v2/<sheetID>

For example, if your Sheet ID is abcd1234efgh5678, the final URL will be: https://sheet.zoho.com/api/v2/abcd1234efgh5678

Under Authorization Type, select Connection. From the list, choose the connection you created earlier for Zoho Sheet.

Add the following URL parameters that define how Zoho Forms should fetch and render your data.
Parameter
| Description | Input |
| criteria | This tells Zoho Forms which column to search in your Zoho Sheet. | In the Choose Field section, click Add Input Manually and type the column name (as in your Zoho Sheet) within quotes.
For example, if your Zoho Sheet column is named ID, enter: "ID"=Then, choose the form field where the Employee ID is entered. |
| worksheet_name | Specifies the worksheet in your Zoho Sheet that contains the data. | Copy the name of your worksheet from the Zoho Sheet. |
| method | Instructs Zoho Forms to fetch records from the sheet. | Type: worksheet.records.fetch |
| render_option | Ensures data is displayed in the same format as in Zoho Sheet. | Enter custom input as formatted |

Test the webhook with search field value like 1001 and check if the received response is valid.

Once the webhook test is successful, map each field from the JSON response to the corresponding form field. Click Save.
Now, when a respondent opens the form, enters their Employee ID and clicks the search icon, the form will call the Zoho Sheet, fetch details, and prefill the form automatically.