Connect web forms with a database by using our Virtual database and dynamic prefill app integration. Starting with our Corporate plans you can benefit from this feature to empower your business and productivity.
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:
Once you have the CSV file ready, go to your form’s Applications section.
Search for the Database Manager icon and click on Add.
Note that the application is displayed only when the account is upgraded to one of our Corporate plans.
The tables can be uploaded as a CSV file, through the Create New 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.
Tables will be displayed in the left-side panel. Clicking on a table will open its content in the main view.
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.
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.
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.