Help Center
Go to siteOpen app
  • Help Center
  • Welcome to the Help Center!
  • Guides
    • Designing a Basic Template from Scratch
    • Adding Variables
    • e-signatures with SignNow
    • How to create Tables
  • Templates
    • What's a template?
    • Page Elements
      • Layout Elements
      • Content Elements
      • Conditional Logic
      • Repeating Elements
    • Settings
    • Headers & Footers
    • Data and Variables
      • Syntax
      • Data Types
      • Formatting
      • Functions
        • $calc (beta)
      • Operators
    • Template Designer v2 (Beta)
      • Connections
        • Airtable Connection
        • HubSpot (Coming Soon)
      • Fields Editor
      • Tokens
      • Coming soon
  • Documents
    • What is a Document?
    • Minted Documents
  • Additional Resources
    • How-To Videos
      • Formatting Variables
      • Airtable Integrations
      • Airtable Data and Variables Videos
      • How to add variable images from your Airtable attachments
      • How to filter items in your Documents
      • How to group items in your Documents
      • Signing Documents with SignNow and Zapier
      • Add charts to your Documents with QuickChart.io
      • Add a Word Cloud chart to your Documents with QuickChart.io
      • Using Make.com (Integromat) to create line items in your documents
      • How to QR codes to your documents with QuickChart.io
      • How to add a progress chart to your documents with QuickChart.io
      • How to connect your Documint account using API keys
      • How to connect your Documint account to Airtable using your Personal Access Token (PAT)
    • Glossary
    • Frequently Asked Questions
    • Troubleshooting
  • Integrations
    • HubSpot
      • Installing the Documint app
      • Connecting your Documint account
      • Navigating the Documint App
      • Working with Custom Object Data
      • Adding HubSpot Properties to Your Template
      • Generating Your documents
      • Using Quick-Create
      • Using Workflows to Create Your Documents
      • Troubleshooting the Documint App
      • Uninstalling the Documint App
    • Airtable
      • Add your Airtable Personal Access Token
      • Airtable Extension
      • Generation Link
      • Automation Script
      • Field Types to Documint Variables
      • Adding Images from Airtable
      • Expanding Linked Records
      • Lookup Fields
      • Documents from Multiple Records
      • Duplicate Document Prevention
      • Password Protection
      • Creating Documents
        • Preview Mode
    • Zapier
    • Make.com
    • Coda
    • Stacker
    • Noloco
    • Softr
    • Pory
    • REST API
Powered by GitBook
On this page
  • Trouble with repeating elements
  • Text not appearing as it does in Airtable field
  • Getting AUTHENTICATION_REQUIRED error when trying to create documents from Airtable
  • Sorting not working
  • Empty values in a list causing misaligned rows
  • Getting [object Object] in my field

Was this helpful?

  1. Additional Resources

Troubleshooting

This section provides solutions for common issues you might encounter while using the Documint app.

Last updated 2 months ago

Was this helpful?

Trouble with repeating elements

Looping over repeated elements is a common technical challenge users may face. We devote a whole section to troubleshooting in the page.

Text not appearing as it does in Airtable field

If text from your Airtable field is not appearing in your documents as it does in Airtable; for example, you have bulleted items or italic text, you can use the . The $md formatter uses syntax to preserve some of the styling in your Airtable text fields. You can use it by adding the variable for your text into the formatter like so: {{$md field_name}}.

Getting AUTHENTICATION_REQUIRED error when trying to create documents from Airtable

Airtable no longer uses API keys for API access. If you integrated in the past with an API key, you will need to replace it with a personal access token from Airtable.

This error is likely occurring because you have not provided a valid personal access token (PAT). Documint requires an Airtable PAT to access your data for document creation.

See on how you can create and add your Airtable PAT.

If you have already provided a PAT and your integration has stopped working, try regenerating your PAT and adding it to your Documint integration. If that does not work, try creating a new one with the required scopes and adding that one instead.

If you are still getting a 401 AUTHORIZATION_REQUIRED error, please contact Documint support.

Sorting not working

There are two likely reasons why your list is not being sorted.

  1. You have not provided a valid field to sort by.

  2. The field you are sorting by is not the correct type.

First ensure that the field you are attempting to sort by exists and is correctly formatted. Check the field/property name of the list to see if you have provided the correct value for sorting. Then make sure it conforms to Documint's variable syntax (with the exception that it should not be surrounded by double curly brackets).

Secondly, your field needs to be a number field. Because the string data type holds alphanumeric (containing letters and numbers) characters, your field may look like a number field but still be of type string (HubSpot record IDs are stored as strings for example). If this is the case with your field, you can add the following expression to the top of your template and it should convert your field to a number type.

{{!-- Add the following expression to the top of your template --}}
{{#each list}}{{$var "field_name" ($ 'num({field_name})')}}{{/each}}

{{!-- Note: if the num() function encounters a non-numerical character, 
it will ignore it and any proceeding characters and just return whatever
numbers it has parsed up until that point. --}}

Empty values in a list causing misaligned rows

If you are looping over a list of objects (collection), you need to place the repeating logic on the highest level element that will be repeating itself.

If, instead, you place the repeating logic in each of the columns that display your objects properties, each column ends up repeating itself independently. Consequentially, if any of the objects in your list are missing properties, some of the columns will lag behind the others, and the rows will no longer be aligned.

Getting [object Object] in my field


If you experience a problem not covered here, or the troubleshooting steps have not resolved your issue, please contact Documint support.

This works by looping over all the objects and assigning the field_name field as a number within the of the object that is currently being iterated over.

See the troubleshooting section for the page for extended details on where to place the repeating logic.

[object Object] appears when you try to reference an object directly. This can happen if you use the {{this}} keyword within the of a collection (list of objects). This can also occur if the or you are using points directly to an object.

Variables placed directly in the template need to be of a string (alphanumerical), number, or boolean (true/false) . In order to display an object, you would need to display its .

For a detailed explanation of why this occurs, please read

context
repeating elements
data type
properties
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
Repeating Elements
markdown
Add your Airtable Personal Access Token
variable
path
context
$md formatter