DocsAutomator
BlogLaunch App
  • 📃DocsAutomator Basics
    • DocsAutomator Overview
    • âš¡Quickstart Guide
    • Google Doc Template Guide
  • 🔗Integrations / API
    • Airtable
    • Google Sheets
    • Glide
    • Noloco
    • ClickUp
    • Zapier
    • DocsAutomator API
  • ✨Features
    • Dynamic Images
    • Line Items
      • Line Items Grouping + Calculations
      • Auto Row Numbers
    • Sections
    • Advanced Placeholder Options
      • Conditional Paragraph / Row Deletion
      • Enable Markdown Formatting
      • Hidden Values
      • Conditional Show / Hide
      • Conditional Styling
    • Actions After Document Generation
      • Saving Google Docs
      • Save PDFs in Google Drive
      • Send Email
      • Merge Existing PDFs
      • Notify Webhook
    • Document Previews
    • Run History
    • PDF Expiration / Storage
    • Team Management
    • Workspaces
  • More
    • DocsAutomator Reviews
    • Troubleshooting Guide
      • Airtable: 30 seconds limit on automation scripts
      • Airtable: Attachment url issue when sending emails
      • Tab cover page added in generated documents
      • Data source is set as Airtable and no record id is given
  • Data Privacy
  • YouTube
  • X
  • Feature Requests / Roadmap
Powered by GitBook
On this page
  • Mapping Data by Data Source
  • Multiple Line Items
  • Adding Images
  • Grouping
  • Conditionally Show / Hide Rows
  • Conditional Styling of Text / Rows
  • Styles for even / odd rows
  • FAQs
  1. Features

Line Items

DocsAutomator has powerful features for adding groups of data / line items to your documents

PreviousDynamic ImagesNextLine Items Grouping + Calculations

Last updated 10 months ago

Line items are groups of data which vary in length. Think of line items on invoices, a list of attendees at a conference, the ingredients needed in a recipe, etc. We can't define the length of these lists in the template as we don't know how many items will be added. This is where DocsAutomator's Line Items feature enters the game!

Line Items = Groups of data / lists of things

You declare line items as a line item row in your templates. Here is an example:

Starting a row with {{line_items_$num}} tells DocsAutomator to expect a list of things. The variables after that line item key word belong to that set of line items. To learn more about creating Google Doc templates, go here: Google Doc Template Guide

Here is a printed result with two options:

Mapping Data by Data Source

Mapping your data depends on your data source. Here are the different options including links to learn more:

Data Source
Mapping

Airtable

ClickUp

Line items not available currently

Glide

Noloco

Zapier

API

Multiple Line Items

You can add as many line items as you need. Just increment the number and make sure they are declared in the right order ({{line_items_1}}, {{line_items_2}}, ...). Example with two line items:

You can mix variables and static text in line items (see static text "pieces" in the line items 1 example above) and cells can also span multiple lines

You can add as many rows above or below a line items row (for headers, footers, ...)

Variables have to be unique per line item row

Line items have to be declared as an entire row and not partially (for instance the last three columns of a 5 column row)

Adding Images

You can add images inside of line items. Image placeholders are declared in the same way as regular image placeholders, with the image_ prefix: {{image_name}}. You can then map a single image or a list of images for that image placeholder.

Grouping

Line items can be grouped by any line item variable / placeholder (except images). For more, see Line Items Grouping + Calculations

Conditionally Show / Hide Rows

DocsAutomator allows you to conditionally show / hide rows depending on certain criteria. You set this via the options / gear icon on each line item variable:

Once clicked, you can set show / hide conditions based on values for that placeholder.

To learn more, go here: Conditional Show / Hide

Conditional Styling of Text / Rows

DocsAutomator allows for styling text and rows conditionally. You find this on the via options next to each variable. On there, you'll be able to set styles for certain conditions:

There are many options for text styles as well as defining the row background color dynamically.

Styles for even / odd rows

A special styling option is applying style depending on even or odd rows. This allows for alternating the background color of rows, which is common for many line item situations.

FAQs

How are line items sorted?

For most data sources, line items are printed as passed. In the case of Airtable, you can select a view and items will be sorted according to that view. For Noloco, there is a special option to sort in the Noloco interface.

Is there a limit to how many items I can pass?

No. There are users passing hundreds to thousands of items.

Are nested line items possible?

Nested data (line items having line items) is not possible yet, but soon.

In automation interface (learn more: )

In Glide:

In Noloco:

In Zapier:

Passed as an array of objects:

✨
DocsAutomator API
Adding Line Items
Working with line items
6. Map fields + (optionally) line items
Line Item Row
Line items in DocsAutomator — printed
Multiple line items
Variable Option Icon
Show / hide conditions
Set styles conditionally
Setting styles basesd on even or odd row
Adding line items