Skip to main content

Tables in Docs

If your form includes a Table element, you can easily display and customize it in your Docs templates.

Updated over 3 months ago

Whether you want to show multiple rows of data or format the table in a specific way, Array gives you full control over how tables appear in your document output.

In This Article

  • How to display a table in your document template

  • Two examples of customized table layouts

  • How to limit or target specific rows in your table

Displaying a Table on Your Template

When you download a document template linked to a form with a table, Array will automatically insert table markers into the Word document. These markers define how your table data will be displayed.

Example of Default Table Markers:

${element-123456} ${row-1} ${row-2} ${/element-123456}

The content inside this marker loop will be repeated automatically for each row in the submitted table data.

Customizing Table Layouts

You can fully customize how your table appears in the document by adjusting the marker placement and styling. Below are two common methods for customizing tables in Docs:

Example 1: Dynamic Table (Repeats Rows Automatically)

This setup is ideal if you want to show all rows submitted in the form.

Form Example:

A table with these fields:

  • Check Box List

  • Text

  • Number

  • Radio List

Steps:

  1. Place the table markers ${element-xxxxxx} and ${/element-xxxxxx} around your row layout.

  2. Inside the loop, arrange your field markers in the desired order (e.g. ${element-xxxxxx_text}, ${element-xxxxxx_number}, etc.).

  3. Format the layout using a Word table or tab spacing.

Result:

Each row submitted in the form will be displayed in the document—automatically repeating based on the number of rows in the submission.

📄 Output Example:

| Option 1 | Sample Text | 25 | Yes | | Option 2 | Another | 40 | No |

Example 2: Fixed Row Table (Set Maximum Rows)

This layout lets you define a fixed number of rows, even if the form submission includes fewer.

Steps:

  1. Use individual markers for each row.

  2. Add a row number suffix to the element marker.

Example Markers:

${element-1297748-1} ${element-1297748-2} ${element-1297748-3} ...

You can place these markers exactly where you want each field to display, giving you full control of the layout—great for official forms or printed documents with a set format.

📄 Output Example (5 fixed rows):

| Option 1 | Sample | 20 | Yes | | Option 2 | Text | 15 | No | | | | | | | | | | | | | | | |

How to Target a Specific Table Row

To display data from a specific row in the table, add a row number to the field marker.

For example, if your element marker is:

${element-1297748}

You can target specific rows like this:

Row

Marker

Row 6

${element-1297748-6}

Row 20

${element-1297748-20}

This allows you to display only selected rows—useful when referencing specific entries within the form submission.

Tips for Using Tables in Docs

  • Always wrap row markers inside the main element markers (${element-xxxxx} and ${/element-xxxxx}) for repeating layouts.

  • Use Word tables to help align your fields cleanly.

  • Test your output by submitting a form with sample data and downloading the document to see how it renders.

Did this answer your question?