Documentation
  • Welcome to Documentero Docs
  • General
    • Usage Limits and Quotas
    • Manage Account & Plans
    • Documentero Roadmap / Changelog
    • Privacy Policy
    • Frequently Asked Questions
  • templates
    • Templates Introduction & Tutorial
    • Template Upload/Re-upload
    • Organize Templates into Folders
    • Fields
    • Fields - Images
    • Fields - QRCodes
    • Fields - Links
    • Fields - HTML Support
    • Fields - Markdown Support
    • Fields - Mermaid Support
    • Fields - Formatters
    • Sections
    • Sections - Types & Options
    • Smart Fields
    • Smart Sections
    • Template Variables
  • Charts & Diagrams
  • 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
  1. Forms

Conditional Fields & Sections

PreviousField - TextFieldNextShared Forms

Last updated 1 year ago

You can conditionally show/hide fields or sections in your form based on responses in other fields.

Provide Condition in Condition Field in Field/Section/Image customization modal

Please check the examples:

sex == 'Male' ==> Field will appear only if field 'sex' has 'Male' value
approved == 'Yes' ==> Field will appear if field 'approved' has 'Yes' value (Could be set by Checkbox or radio button)
companyType == 'Automotive' || companyType == 'Healthcare' ===> Field will appear only if field 'companyType' has 'Automotive' value OR 'Healthcare' value
name != 'John' ==> Field will appear if field 'name' is not equal to 'John'
price > 500 ==> Field will appear if field 'price' is higher than 500

You can use conditional formatting together with "contains" / "notcontains" filter. Especially useful if you want to show field based on multi-checkbox selection or part of field value. Examples:

companyType | contains: 'Automotive' ==> Field will appear if field 'companyType' contains Automotive word
companyType | notcontains: 'Automotive' ==> Field will appear if field 'companyType' do not contains Automotive word

You can also use expressions/formulas based on multiple fields values

Please check the examples:

companyType == 'Automative' && insurance == 'Yes' ==> Field will appear only if field 'companyType' has 'Automative' and field 'insurance' has 'Yes' value
insured == 'Yes' || age > 18 ==> Field will appear only if field 'insured' has 'Yes' value and field 'age' is higher than 18

You can also use it based on optional sections

isUnderage ==> Field will appear only if section 'isUnderage' is selected
!isUnderage ==> Field will appear only if section 'isUnderage' is NOT selected
isUnderage && sex == 'Male' ==> Field will appear only if section 'isUnderage' is selected and field 'sex' has 'Male' value

You can find all fields with conditions on the fields/section list on the form configuration page marked with a special icon

You can use conditions within section items (fields)