Prefill-Webhook

Prefill-Webhook

Overview

The Prefill-Webhook field allows you to dynamically populate form fields with data fetched from an external service, making form-filling faster and more accurate. When a respondent enters a value in this field and clicks the search icon, the form sends a request to the configured service. Based on the response, relevant form fields are automatically prefilled, creating a personalized and streamlined experience.



Benefits:
  1. Saves time and effort for respondents by pre-filling form fields.
  2. Improves data accuracy by reducing manual data entry errors.
  3. Creates a personalized experience for respondents.

How does dynamic prefilling work?

  1. Respondent opens the form, enters data into the Prefill-Webhook field and clicks the search icon.

  2. On searching, the form sends a request to the external service along with the value entered in the Prefill-Webhook field to fetch the data.

  3. The external service processes the request and returns data to be prefilled.

  4. The form receives the response from the external service and the data will be prefilled in the form fields based on the prefill configuration.

  5. The respondent views the prefilled form and can complete the remaining fields or make any necessary adjustments to the prefilled information.

Configuring Prefill-Webhook

To configure the Prefill-Webhook field, create your form and follow these steps:
  1. Navigate to the Builder tab.
  2. In the fields panel, go to Advanced.
  3. Drag and drop the Prefill-Webhook field onto your form to add it.
  4. A configuration popup will appear now with four steps to complete the setup:
    1. Field Configuration
    2. Webhook Settings
    3. Webhook Test
    4. Prefill Mapping
Let's check each step in detail below. 

1. Field Configuration

Field Configuration
In this section, you will configure the basic field settings:
  1. Enter the Field Label for your Prefill-Webhook field. 
  2. Choose the Field Type
  3. The supported field types are Single Line, Number, Email, Phone, Dropdown and Radio. 
  4. Click Next.

2. Webhook Settings
Webhook Settings

In this section, you will configure the webhook:

Webhook Details 

Webhook URL
The Webhook URL is the endpoint where your form will send requests to the external service on search. Enter the full URL of the external service to retrieve the data. 
The following Webhook URL methods are supported:
  1. GET
  2. POST

Authorization Type
Select the desired Authorization Type:
  1. General: Use when the endpoint is public or when you handle authentication via headers or query parameters.
  2. Connections: Use a pre-configured connection from the Control Panel. If you choose Connections, select the appropriate connection from the Connection Name dropdown list. Click the refresh icon if you have recently added a new connection so that it appears in the list. Read more on creating connections.
NotesNote: The Connection Name will only list the existing active connections. Read more about Connections.

Data Retrieval Methods
Retrieval of data from external sources can be done by either
  1. URL Parameters 
  2. Request Body
  3. Custom Header

URL Parameters
URL Parameter sends information to an external service, to retrieve the record to prefill a form when a user enters a value in the search field of the form.
URL Parameters
During a record search, the webhook will include the URL parameter as a query string. The value entered in the Search Field, if mapped as a URL Parameter, is sent as the query parameter's value. The external service then uses this information to provide the data needed to prefill the form.
Example:  If your Prefill-Webhook field is "Enter your Email" and its value is mapped to the URL Parameter email, when a user enters richard@zylker.com in the field and searches, the webhook will send a request like: https://api.zylker.com/getEmpInfo?email=richard@zylker.com

You can add additional information to filter the relevant data. For example, if you add a parameter named department with the value IT, then webhook will send a request like this:
You can add additional parameters by clicking the + icon and entering the name and value. You can also add a custom value to a parameter name by clicking Custom Input.

Request Body
Request Body is another way to send information to an external service to retrieve records and prefill the form. The supported formats are JSON and Text. The Request Body is used only with the POST method.
Example - Sample JSON to retrieve record based on a respondent's email and department:
{
  "email": "${zf:SingleLine}",
  "dept": "IT"
}
Request Body

Custom Headers
You can set a custom header name and value to be passed with the Webhook request.Enter the name of the header and the value associated with this header.
Custom Headers

Notes
Note:
  1. The Prefill-Webhook field must be included in either URL Parameters or the Request Body, as it provides the webhook the identifier to retrieve a specific record.
  2. You can add up to five URL Parameters and Custom Headers each. 
  3. You can add up to five form fields in total, combining both URL Parameters and Request Body. Supported field types include Single Line, Number, Email, Phone, Dropdown, and Radio.
Click Next.

3. Webhook Test

Webhook Test
In this step, you can test the webhook to ensure it retrieves the correct data based on the value entered in the Prefill-Webhook field.
  1. Enter the test values in the Fields section.
  2. Click Run Test to execute the webhook.
  3. Review the received response to verify the data is correct.
Run Webhook Test
Click Next

Notes
Note: The Fields section displays all the fields configured in the URL Parameters and Request Body.

4.  Prefill Mapping

The next step is to determine which form fields should be pre-populated with the information from the fetched data.

To map the form fields that you wish to prefill with data from the external service, 
  1. Click Choose Field to add a form field.
    Prefill Mapping - Choose a Field
  2. Click the input text box on the right corresponding to the added form field. 
  3. A popup with the JSON response will open. Identify the keys in the JSON response that contain the data you need and select it for the mapping.
    Select value in JSON response to map
  4. Repeat this for all form fields you wish to prefill.

For Date and Date-Time fields: You have the option to choose the Expected Format. The date value received from the webhook in the chosen format will be converted to the Date Format configured in the form's settings (Settings > General > Date & Time > Date Format) and prefilled in the live form.
Date and Time fields mapping
For Subform fields: If you have any Subform fields in your form, and wish to prefill them, map those Subform fields with the corresponding external service data fields in the same way.
Subform Mapping
Click Save to complete the Prefill-Webhook field configuration. 

Notes
Note
  1. You can have a maximum of 50 field mappings in the Prefill Mapping section, including fields mapped within the Subform.
  2. When a form loads with a pre-filled value (via Field Alias) in the Prefill-Webhook field, it triggers the search automatically. Here, the mapped fields will get prefilled via the webhook without the respondent manually clicking the search icon.  
  3. You can add only one Prefill-Webhook field to a form.
  4. If your form already has a Zoho CRM field, you cannot add a Prefill-Webhook field, and vice versa.   
  5. Prefill-Webhook fields cannot be duplicated.    
 

 Field Properties    

Prefill-Webhook Field Properties
After you configure the Prefill-Webhook field, the standard field properties will be the same as those of the selected field type (Single Line, Number, Email, Phone, Dropdown, or Radio).

After configuring the field, Webhook Configuration and Search Icon Style can be edited from the properties panel itself later.

Webhook Configuration 

Webhook Configuration displays your Webhook URL and method (GET/POST) within the properties panel itself. For a quick view of your configured webhook, click the Summary button; for editing it, click on Edit button.

 
Webhook Configuration Summary 

Click on the Summary button to view Webhook Configuration Summary. It displays a summary of your configured webhook, including the Webhook URL, HTTP method used (GET/POST), URL Parameters/Headers and Prefill Mapping details. You can quickly view the configuration without reopening the full setup.

Webhook Configuration Summary

 Edit  Webhook

Click the Edit button to reopen the configuration screens and modify the Webhook Settings, Webhook Test, and Prefill Mapping details if required.

 Edit  Webhook Configuration

 

 Search Icon Style  

You can choose how the search action is presented to respondents in the live form using the Search Icon Style property. The search icon can be customized in the following display styles:

 Inline Icon 

The search icon appears directly within the input field, on the right side.
Inline Icon

 Standalone Icon 

The search icon appears as a separate clickable icon right next to the field.

Standalone Icon

 Button 

The search action appears as a dedicated button. On selecting this icon style, the Button Label property will appear. This lets you customize the text displayed on the button (for example, “Search”, “Lookup”, “Fetch Data”).

Button

Notes
Note:
  1. After configuring the Prefill-Webhook field, clicking the search icon in the live form field triggers the webhook and automatically prefills the mapped fields.
  2. The button label cannot be left empty and the maximum length supported is 10 characters.

Response Formats for the Field Types

Check out the Response formats corresponding to the form fields.

Field TypeExampleResponse Format
Single Line, Multi Line, Address, Name, Dropdown, RadioRichard
Number, Rating, Slider100
Currency, Decimal100.5
Emailrichard@zylker.com
Websitewww.zylker.com
Phone2436673893
Date2024-08-23yyyy-MM-dd
Time14:30HH:mm
Date-Time2024-12-30T10:05:59.564600+08:00yyyy-MM-dd'T'HH:mm:ss.SSSXXX
Checkbox, Multiple Choice, Image Choices[100.50, 101.50]JSON Array
Decision BoxTRUE
Subform
[
{
<SUBFORM_ROW_1>
},
{
<SUBFORM_ROW_2>
}
]
JSON Array

Pricing

Each time a search is performed, one wallet credit will be deducted. This means that even if the same respondent performs multiple searches, each individual search will consume one wallet credit. Essentially, every new search action triggers a deduction, regardless of how many times the same respondent repeats the process.
The total number of search operations available to you varies depending on the subscription plan you choose as follows:

   Plan   Limit
Trial
100
   Basic10000  
   Standard25000  
   Professional75000  
   Premium150000  
   Zoho One150000  

Notes
Note
  1. This is the total limit for your organization's account, including all users and forms.
  2. You can view your usage details under Account Usage.
  3. Once the limit is reached, the access to the form will be blocked.
  4. The Prefill - Webhook field is not available in the Free plan.
  5. The limit will be reset automatically every month based on your billing cycle. 

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG


                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now




                                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                Manage your brands on social media


                                                                  • Desk Community Learning Series


                                                                  • Digest


                                                                  • Functions


                                                                  • Meetups


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner


                                                                  • Word of the Day


                                                                  • Ask the Experts


                                                                    Zoho Sheet Resources

                                                                     

                                                                        Zoho Forms Resources


                                                                          Secure your business
                                                                          communication with Zoho Mail


                                                                          Mail on the move with
                                                                          Zoho Mail mobile application

                                                                            Stay on top of your schedule
                                                                            at all times


                                                                            Carry your calendar with you
                                                                            Anytime, anywhere




                                                                                  Zoho Sign Resources

                                                                                    Sign, Paperless!

                                                                                    Sign and send business documents on the go!

                                                                                    Get Started Now




                                                                                            Zoho TeamInbox Resources





                                                                                                      Zoho DataPrep Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now








                                                                                                                            • Related Articles

                                                                                                                            • Dynamic Prefill - Webhook

                                                                                                                              This feature is now managed in the Builder. Open your form, then navigate to Builder > Advanced and add a Prefill-Webhook field. Learn more
                                                                                                                            • Choosing the right prefill type

                                                                                                                              Zoho Forms offers multiple options to prefill fields in your forms, ensuring a seamless experience for users by auto-populating known data. The 3 primary prefill types are: Field Alias - Prefill URL Static Prefill URLs Prefill-Webhook They all serve ...
                                                                                                                            • 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 ...
                                                                                                                            • How to prefill Zoho Forms with data from Google Sheets 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 Google Sheet and pre-populating your forms when the user opens them. This saves time, reduces ...
                                                                                                                            • IP制限に対応したWebhookの動作確認方法

                                                                                                                              お知らせ:当社は、お客様により充実したサポート情報を迅速に提供するため、本ページのコンテンツは機械翻訳を用いて日本語に翻訳しています。正確かつ最新のサポート情報をご覧いただくには、本内容の英語版を参照してください。 システムでIP制限を利用している場合は、WebhookおよびDynamic Prefill - Webhookが円滑に動作するよう、下記のIPアドレスをホワイトリストに登録してください。 https://forms.Zoho.com (米国データセンター) CIDR 範囲 ...
                                                                                                                              Wherever you are is as good as
                                                                                                                              your workplace

                                                                                                                                Resources

                                                                                                                                Videos

                                                                                                                                Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                eBooks

                                                                                                                                Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                Webinars

                                                                                                                                Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                CRM Tips

                                                                                                                                Make the most of Zoho CRM with these useful tips.



                                                                                                                                  Zoho Show Resources