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
  1. Features
  2. Advanced Placeholder Options

Conditional Paragraph / Row Deletion

Delete lines / rows when no or empty values are passed for placeholders

PreviousAdvanced Placeholder OptionsNextEnable Markdown Formatting

Last updated 11 months ago

In many document scenarios, we would like to delete entire lines / rows if a value is not present.

In the invoice example below, if no discount is given, we would like to delete the entire discount line instead of leaving the discount empty:

For placeholders outside of tables, lines are deleted. For placeholders in tables, the entire row is deleted.

Works with line items as well to remove entire line item rows if a value for a line item placeholder is empty

Line / row deletion is enabled via the settings icon next to every placeholder / variable:

Deleting lines / rows can be used in combination with Conditional Show / Hide — if a value is hidden under a certain condition, enabled line / row deletion deletes the entire line / row.

✨
Invoice example for line deletion
Placeholder Settings Icon