Prefill via API

  • Eric_Lieu
    Asked on April 28, 2025 at 10:01 PM

    I found this article:

    https://www.jotform.com/answers/3505052-prefill-form-fields-using-api

    Is there a way now to prefill using the API? Maybe I can use the API to manually submit one form and then use the API to pull that data to prefill another form?

  • Podo: Support AI Agent
    Replied on April 28, 2025 at 10:02 PM

    Hi Eric_Lieu,

    I'll do my best to support you until one of our support agents replies.

    You asked about pre-filling form fields using the API and whether it's possible to submit one form via API and then use that data to prefill another form.

    Jotform provides several ways to prefill forms, including using URL parameters, manual prefill, form prefill, tables prefill, and integrations with third-party platforms. While there isn't a direct API endpoint specifically for prefill, you can achieve prefill functionality by using the following methods:

    • Prefill via URL Parameters: You can prepopulate form fields by adding query strings to the form URL. For example, you can construct a URL with key-value pairs where the key is the field's unique name and the value is the data you want to prefill. This method works well if you can generate or pass the data externally.
    • Manual Prefill: In the Form Builder, under the Publish tab, you can create manual prefill entries by filling out a form and generating a prefill URL that can be shared or used to prepopulate the form.
    • Form Prefill: This allows you to fetch existing submission data from one form to prefill another form. It is useful when you want to use data already collected in your Jotform submissions.
    • Tables Prefill: You can use data from Jotform Tables to prepopulate form fields by mapping table columns to form fields.

    Regarding your idea of submitting one form via API and then using the API to pull that data to prefill another form, you can:

    1. Use the API to submit the first form and store the submission data.
    2. Retrieve the submission data via API from the first form.
    3. Generate a prefill URL for the second form using the retrieved data as URL parameters or by creating a manual prefill entry.

    This approach allows you to programmatically transfer data between forms using the API combined with Jotform's prefill features.

    For detailed steps and examples, you can refer to the Jotform Prefill documentation and the article you found: Prefill Form Fields Using API.

    Let me know if you need help with specific API calls or generating prefill URLs.

    Give it a try and let us know how it goes.

    Best regards,
  • Mahmoud JotForm Support
    Replied on April 29, 2025 at 6:02 AM

    Hello Eric,

    Thanks for reaching out to Jotform Support. While it is possible to create form submissions using the Jotform API, unfortunately, prefilling your form using the Jotform API is not possible. We have documentation about the Jotform API available at this link.

    As a workaround, we offer several options that can help you prefill your forms. You can discover how Jotform Prefill works and explore these alternatives by checking out our guide. You can also check this guide about Prepopulating Form Fields via URL Parameters.

    Let us know if there’s anything else we can help you with.

Your Answer