Add a table to a form (using subforms)

Prev Next

Your current form may include a table where data is input into multiple cells as a group. Tables like this can be translated in FastField by using subforms.

Subforms allow you to capture recurring instances of the same data type. An example of this would be recording an inventory of items with line items. In this scenario, you would create a reusable subform representing a line item input. Let's look at this physical inventory sheet as an example.

Physical inventory sheet showing a table with columns for item number, description, purchase price, quantity, and location

Turn a table into a subform

Not all of this table would be included in the subform. Think of the top section as a static section and the item inventory table as a dynamic set of fields.

Inventory sheet with the static top section highlighted separately from the repeating item inventory table below

These top four fields would be translated into numeric, date/time, text, or option list fields and would not be included in the subform but would be included in the main form.

Example:

Legacy Form Builder showing the four main form fields: numeric, date/time, text, and option list

The part of the table that would be included in the subform would be the Inventory number, item description, purchase price, quantity, and location.

Inventory sheet with the Inventory number, item description, purchase price, quantity, and location columns highlighted as the fields that will become part of the subform

Your subform should look similar to the example below:

Legacy Form Builder showing the completed subform with fields for Inventory number, item description, purchase price, quantity, and location

Add the subform to your main form

  1. Log in to the Portal using your username and password.

Note

Only the Admin and Builder roles can edit a form.

  1. Open your form, and add the Subform field type.

  2. On the right-side panel, select the subform you have created.

  3. Select Allow Multiple Subform Instances; this will allow you to repeat inputs in the table.

  4. From this point, you can configure the subform field as needed. See Create and use subforms for more details.

Legacy Form Builder showing the Subform field added to the main form with the Allow Multiple Subform Instances option selected

In practice, Allow Multiple Subform Instances must be turned on to use the form as an item inventory log effectively. Complete the item inventory subform as many times as needed, then select Submit. Your instances will be queued as shown until you are finished.

App screen showing multiple queued subform instances for an item inventory, ready to be submitted

Select Submit when you have finished your subform instances.