How to connect 123FormBuilder web forms with a CSV database file

Connect web forms with a database by using our Virtual database and dynamic prefill app integration. Starting with our Enterprise plans you can benefit from this feature to empower your business and productivity using our form builder.

Once the form(s) are linked with your CSV file, the information gathered will populate your database. Prefill forms fields from your CSV table to save time and improve consistency.

Let’s look at an example:

First, you will need your database in a CSV format. Below are listed the CSV file’s requirements:

  • Cells are formatted with text
  • Field delimiter is set to comma
  • Text delimiter is set to quotation marks
  • UTF-8 characters supported

Once you have the CSV file ready, go to your form’s Integrations section. Search for the Database Manager icon and click on Add.

The tables can be uploaded as a CSV file, through the Create table button. Here you can name the table and the given name will be used in the SQL rules, to return values.

Tables can be managed in the Explore database section.

connect web forms with a database

Tables will be displayed in the left-side panel. Clicking on a table will open its content in the main view.

connect web forms with a database

Create SQL rules to specify the acceptable values that can be inserted into a column or to prefill form fields. Create queries to search for certain customers that meet specific criteria.

By prefiling your form fields based on a keyword you can avoid mistypes. The information is automatically pulled from your database and form users don’t need to re-enter their details over and over again.

That’s it! Now your form can read from your database and populate the data on the form.

Here are two syntaxes examples that you may want to use:

Inserting into the table:
INSERT (IGNORE) INTO table_name SET column_name=:field_control (SET second_column_name=:other_field_control, etc.)

Update the table info:
table_name SET column_name=:field_control WHERE other_column_name=:other_field_control (AND second_column_name=:second_field_control, etc.)
*Include REMOTE at the beginning of the above syntaxes if the table is stored on a remote server.

Here is an example:
When the form is submitted, the action should store the data in the contacts table.

123Formbuilder web forms

Normally, if you fill the form twice, using the same code, you will have 2 rows inserted, with the same code, and the corresponding data.

If you wish to only keep the latest data, you have to set the code column as unique. This is done from the Explore database panel. After selecting a table from the list also click on the key symbol at the bottom of the list. This will open up a separate view of the table columns and their type, from which you can enable/disable the primary key lock.

123Formbuilder web forms

You will be able to use INSERT INTO IGNORE as a function so that you do not get entry rows with the same primary key.

Even if you are not familiar with SQL queries, our Corporate plans have an advantage. Once you sign up, a dedicated Account Manager will help you develop your forms based on your needs.

Related articles

2 comments

  1. Hello
    I’ve tried following the steps outlined in this tutorial but i still have no luck.
    When trying to upload the table I keep receiving the error message

    “Failed to create table”
    There was an error encountered while trying to create your table.
    Please inspect if the “Advanced options” settings are setup correctly

    There is a step here that is confusing. “Text delimiter is set to quotation marks”
    Is there possibly an excel template or screen shot of how the CSV format should look.

    1. Hi Carol! Since you are on our Enterprise plan, your dedicated account manager can guide you establishing the connection and answer your technical questions. Please get in touch with him/her. Thank you for your understanding!

Leave a Reply

Your email address will not be published. Required fields are marked *

Frequently Asked Questions

Here is a list of the most frequently asked questions. For more FAQs, please browse through the  FAQs page.

Is this service free?
Yes, we offer a free form builder service. Just sign up to the Basic plan and you are all set. This plan is forever free, but you are limited with a few features only, such as 5 forms per account, 100 submissions per month and you have to keep the backlink to 123FormBuilder on your forms. Check out our features matrix for more information.
How many forms can I create?
It depends on the service plan you are on. Higher service plans enable more features, including more web forms for your account. If you need more forms, go to the My Account section of your account and click the upgrade button. To create an unlimited number of forms, either upgrade to the Platinum service plan or higher. Consult our features matrix for more information.
How can I publish my forms?
You can publish your forms in many ways, by using their direct URL or HTML link, embedding them with a JavaScript code, Inline HTML or iFrame, using the Facebook app or the WordPress plugin, using popups, the Blogger code snippet and many more. Once you have created and customized your form, go to the Publish section to complete your work. Read more in our documentation.
How do I change my form design?
You can change the design of your form for more information. in the Themes section, which is located in your form settings. We offer a set of more than 30 predefined form themes for your forms, but you can also create your own from scratch. You can customize the submit button, the logo and more. To apply your own stylesheets, all forms come with a custom CSS editor.

Can't find what you're looking for?