Documentation
  • Welcome to Documentero Docs
  • General
    • Usage Limits and Quotas
    • Manage Account & Plans
    • Documentero Roadmap / Changelog
    • Privacy Policy
    • Frequently Asked Questions
  • Templates Introduction & Tutorial
  • Template Upload/Re-upload
  • Organize Templates into Folders
  • templates
    • Fields
    • Sections
    • Fields - Images
    • Fields - QRCodes
    • Fields - Links
    • Fields - HTML Support
    • Fields - Markdown Support
    • Fields - Mermaid Support
    • Fields - Formatters
    • Sections - Types & Options
    • Smart Fields
    • Smart Sections
    • Template Variables
  • Charts & Diagrams
  • Templates - Excel
    • Fields
  • Sections / Tables
  • Fields - Images
  • Fields - QRCodes
  • Fields - Links
  • Fields - HTML Support
  • Fields - Markdown Support
  • Forms
    • Create Documents using Form
    • How to customize document form
    • Fields/Sections - General Settings
    • Field- Types & Options
      • Field - Multi Checkbox
      • Field - Checkbox
      • Field - Radio Button
      • Field - Datepicker
      • Field - Radio Select
      • Field - Select
      • Field - Multiline
      • Field - Number
      • Field - TextField
    • Conditional Fields & Sections
    • Shared Forms
      • Sharing Forms
      • Shared Form Configuration
      • Consent Form (GDPR)
      • Embeed & customize shared form on your website
  • Spreadsheet
    • Create Documents using Spreadsheet
  • API
    • Create Documents using API & JSON
    • Integrate with Documentero Cloud API
  • ChatGPT
    • Create Documents using ChatGPT
  • Integrations
    • Zapier
    • Make.com
    • Integrately
    • Pabbly Connect
    • Albato
    • Bubble.io Plugin
    • Webflow
    • Flutterflow
Powered by GitBook
On this page
  • Overview
  • Syntax
  1. templates

Smart Sections

PreviousSmart FieldsNextTemplate Variables

Last updated 4 months ago

Overview

Smart sections use a special tag that starts with "#$". They are not shown on form.

They support calculations and conditions on regular fields like Smart Fields. The difference is that they can show or hide part of the template (like a paragraph or some text that appears based on some condition or value is higher than x).

You can use Smart Section not only to show/hide part of document but also to show / hide whole pages.

Syntax

{#$ CONDITION} Part of document you want to show/hide {/}

Supported operators:

  • == (Equal),

  • != (Not Equal),

  • > (More Than)

  • < (Less Than)

  • && (And)

  • || (OR)

Show Part of document based on condition

Name: {name}
Type: {type}
{#$ type == 'student'}
User {name} claims that is student
{/}

Show Part of document based on conditions

Name: {name}
Type: {type}
Age: {age}

{#$ type == 'student' && age > 18}
Member: {name} claims that is adult student
{/}

{#$ type == 'student' || type == 'employed'}
Member: {name} claims that is student or employed
{/}


{#$ age < 18}
Member is underage
{/}

{#$ type != 'student'}
Member is not a student!
{/}

Show Part of document if field contains value

If you want to show / hide part of document if field contains (part of text) specific text you can use "contains" and "notcontains" filter

{name} // Field name (assuming it's 'Alicia, Mark, Alfred')

{#$ name | contains:'Ali' }
This part ofdocument will appear if text contains 'Ali' (It will show as 'Ali' is part of 'Alicia, Mark, Alfred')
{/}

{#$ name | notcontains:'Ali' }
This part of document will appear if text does not contains 'Ali'
{/}

{#$ name | contains:'John' }
This part of document will appear if text contains 'John'
{/}

{#$ name | notcontains:'John' }
This part of document will appear if text does not contains 'John'
{/}