Appiphony
 
  • Products
    • Merge Connect Document Generation
    • eSign Connect Docusign Integration
    • Parse Connect Document Parsing
    • Share Connect SharePoint Integration
    • Drive Connect Google Drive Integration
    • Experience Connect Experience Cloud Add-on
  • Company
  • Resources
    • Documentation Learn about our products
    • Blog Salesforce guides and tutorials
    • Customer Stories How our customers succeed
    • Videos Visit our YouTube channel
    • Company Get to know Appiphony
    • Careers View openings
    • PDO Services Build with Appiphony
    • PDO Customer Portal Access our customer portal
  • Pricing
Product Documentation Contact Us

Conditional Logic

Template builders can create more complex merge templates with Conditional Logic. Conditional Logic allows you to use one or more fields and operators to create blocks of text that can be hidden or shown depending if the parent record meets the criteria. This could allow you to make contracts and documentation for clients where different legal language may need to apply depending on the record a user is working with.

 

Note: More than one criteria can be used to create conditional logic statements.

  1. Navigate to the Drive Connect application in Salesforce and select the Template Builder tab. Drive Connect app with Template Builder tab highlighted
  2. Create a new template or select an existing template to edit. Template Builder tab with templates folder edit UI highlighted
  3. In the merge field generator tab, click the Type drop-down and select Functions. Merge Field Generator tab within template editor with Type picklist highlighted and Functions option selected
  4. In the Function dropdown, select Conditional Logic; this will bring up the criteria section. Merge Field Generator tab within template editor with Function picklist highlighted and Conditional Logic option selected
  5. In the Field dropdown, select the field you are comparing data against. Merge Field Generator tab within template editor with Field picklist highlighted
  6. In the Operator dropdown, select an operator. Operator picklist with Equals option selected
  7. In the Value field, enter a value. Merge field generator tab with Value input highlighted and _New Business_ entered
  8. Copy and paste the conditional logic statement into the body of the document. Merge field generator tab with generated conditional logic statement in an editable field with a _Copy_ button underneath. The merge field has been pasted into the body of the template.
  9. Add any conditional text or merge fields into the designated area. Conditional logic statement highlighted within the body of the document. It displays a message thanking the recipient for their business when generated from an opportunity classed as new business.

Getting Started

  • Introduction
  • Installation & Setup
  • FAQs
    • How do I update Drive Connect?
    • Can I trial Drive Connect?
    • How is Drive Connect used in a sandbox environment?
    • How do I open a support ticket with the Drive Connect team?
    • Can I provide the Drive Connect team with feedback?
    • Why Can't I Preview Files in Safari?
    • How do I sign out of my Google account in Drive Connect?
    • How do I manage Google account access for Drive Connect?
    • How do I grant access to folders in Google Drive?
    • What are the Drive Connect remote sites?
    • How does Drive Connect use Google OAuth 2.0 Scope to access Google APIs?
    • How do I activate Drive Links on mobile devices?
    • Can I migrate Google Drive URLs to Drive Connect Default Record Folders?
    • Why are tabs missing from the Drive Connect app?
    • Can I automatically assign licenses and permissions to new Drive Connect users?
    • What can I do if Licensing & Permissions does not load?
    • What should I do if I encounter "Google picker error – The API developer key is invalid"?
    • What should I do if renaming a custom object does not reflect the correct name in related Object picklists?
    • How do I fix "Managing Drive Connect Payments Error – Remote Site Activation Needed"?
    • Why is "Sign in with Google" not working in Safari?
    • Why isn't my Google profile picture visible in Drive Connect?
    • How to Leave an AppExchange Review for Drive Connect
    • Why are my Schedule-Triggered Flows not working?
    • Issues installing Drive Connect: Dynamic Imports are Not Allowed
    • Why is Document Generation no Longer Supported?
  • Release Notes

Features

  • File Management
    • Linking
    • Viewing
    • Downloading
    • Renaming
    • Unlinking
    • Embedding
    • Sharing & Permissions
    • Saving to Salesforce
    • Uploading to Drive
    • Emailing Files
    • Experience Cloud
  • Folder Management
    • Linking
    • Viewing
    • Renaming
    • Unlinking
    • Sharing & Permissions
    • Content Folders
    • Default Folders
  • Automation
    • Automation Setup
    • Creating Automations
    • Automating File Upload
    • Updating Files
    • Automating Folders
    • Automating Files
    • Destination Locations
    • Decision Trees
    • Publishing Platform Events
    • Updating Folders
  • Document Generation (Legacy)
    • Template Builder Tab
    • Root Folders
    • Merge Templates
    • Conditional Logic
    • Merge Fields
    • Related Lists
    • Current User Fields
    • Tables
    • Generating Files
    • Updating Generated Files
    • Increasing File Size Limit
    • Limitations

Integrations

  • Merge Connect
    • Merging in the Drive Links Component
    • Merging in the Drive File Component
    • Importing Existing Drive Connect Templates
    • Merging with Flows
  • Experience Connect
    • Sharing Files & Folders Through Experience Cloud
    • Uploading through the Files Component
    • Uploading through the File Uploader Component

Billing

  • Purchase
  • Manage
    • Licenses
    • Tiers
    • Term
    • Payment Info
    • Cancellation

Products

  • eSign Connect
  • Parse Connect
  • Share Connect
  • Merge Connect
  • Drive Connect
  • Experience Connect

Pricing

  • Drive Connect Pricing
  • eSign Connect Pricing
  • Share Connect Pricing
  • Merge Connect Pricing
  • Parse Connect Pricing
  • Experience Connect Pricing

Resources

  • Documentation
  • Blog
  • Customer Stories
  • Videos
  • Company
  • Careers
  • PDO Services
  • PDO Customer Portal

© 2026 Appiphony, LLC. All rights reserved.

Various trademarks held by their respective owners.

Manage Cookies • Policy & Terms
Loading Comments...