Search Table Data in Form

  • Lori_Sayler
    Asked on September 6, 2024 at 9:56 AM

    Is there a way to create a form that with search fields connected to a table?

  • Ibrar JotForm Support
    Replied on September 6, 2024 at 10:09 AM

    Hi Lori,

    Thanks for reaching out to Jotform Support. Unfortunately, it is not possible to search or populate fields from the table associated with the form itself. As an alternate, you can export the submission table in an Excel file and the use Spreadsheet to Form Widget to search or populate the fields from the attached Excel file. Let me show you how to use it:

    1. Create a spreadsheet with your data structured like you see below. Make sure that the column names in the spreadsheet match the field names on the form, and include a unique column, like an ID, so the data can be distinguished.

    Search Table Data in Form Image 1 Screenshot 50

    2. In Form Builder, click on the Add Form Element menu on the left side of the page.

    3. Click on the Widgets tab, search for the Spreadsheet to Form widget and add it to your form.

    4. In the menu on the right side of the page, upload your data file. (You can simply drag & drop your excel file to the Upload File area.) 

    Search Table Data in Form Image 2 Screenshot 61

    5. Then, click on the Downward Arrow icon in the Access Code Column option and select the unique column.

    6. You can also customize texts used in the widget. After you complete everything, click on the Update Widget button at the bottom right of the menu.

    Search Table Data in Form Image 3 Screenshot 72 Now, when people fill out your form and enter the unique code from the spreadsheet, the corresponding fields will automatically populate when they click Auto Complete Fields. Check out my screencast below to see how it works:

    Search Table Data in Form Image 4 Screenshot 83

    Please note, spreadsheet to form widget doesn't support all fields in the Jotform, this guide will explain you more about supported fields. We also have a guide about How to Export Your Form Data to Excel that you can check out.

    Give it a try and let us know if you need any help.

Your Answer