Set dynamic display in merge templates with condition fields

How to add condition fields in merge templates

Overview

Condition fields allow you to dynamically show or hide content based on set conditions. Conditions come in handy while automating documents like contracts, proposals, or letters where certain sections only apply in specific cases. You can apply conditions to text blocks, table rows and subform regions.

Prerequisites

  1. An automation template connected to a data source with necessary fields involved in conditions to be added to the template (e.g., Name, Membership Type)

Steps

How to add conditions to text blocks

  1. In the Automate pane, click Condition under the Advanced Merge Fields section > Insert Text Condition.

    1. Choose the field and the operator.
    2. Enter the value to match.
    3. Click Insert to place the if-else block in the document
    4. You'll now see two placeholders: <<If block>> and optionally <<Else block>> as shown

  2. Hover on the sample text in If block "content to be shown if the condition is true"and type the required text to conditionally display your content. Similarly hover on Else block sample text "content to be shown otherwise" and type content to be placed in Else block.

How to add conditions to show or hide table rows   

  1. Place the cursor inside the table row you want to conditionally show or hide.
  2. Click Condition > Insert Row Condition.
  3. Define the condition using the visual builder and click Insert.

How to remove conditions

  1. Click the condition you've inserted and click Condition under Advanced Merge Fields.
  2. Click Remove Text Condition or Remove Row Condition.

Troubleshooting

1. Error/Symptom: The condition dialog condition shows options for text fields, but not for date fields.
Possible cause: Field type might not be configured as Date.
Recommended solution: Make sure the field type is correct in merge settings.

2. Error/Symptom: Checkbox field condition is not working.
Possible cause: The value received for the checkbox might not match the expected configuration.
Recommended solution: Verify the actual value returned for the checkbox field. It may be 'true', 'TRUE', or 'checked', depending on the data source. Ensure the condition matches this value exactly.

3. Error/Symptom: Condition doesn't work / content not showing.
Possible cause: Field value could be missing in the data source.
Recommended solution: Make sure the field referenced in the condition has a valid value for each record.

4. Error/Symptom: The table row doesn’t appear even if the condition is true.
Possible cause: The row condition may be set incorrectly or applied to the wrong row.
Recommended solution: Right-click the row, choose Edit Row Condition, and verify the condition.

5. Error/Symptom: Subform fields are not listed in the condition builder.
Possible cause: Cursor could be placed outside the subform repeat region.
Recommended solution: Click inside the subform region before opening the condition popup.

6. Error/Symptom: Date condition is not working
Possible cause: Mismatch between the date format in the condition and data source.
Recommended solution: Ensure the field type is set to Date in the condition popup, and match the date format (e.g., dd/mm/yyyy, mm/dd/yyyy) exactly with your data source.

7. Error/Symptom: Condition inside Repeat/Subform block doesn’t work.
Possible cause: Field used in the condition is outside the block's scope.
Recommended solution: Use only fields available within the subform or repeat block when defining the condition.

8. Error/Symptom: I can’t hide the subform table heading when subform table is empty; Merge Preferences only hides the subform table.


Workaround: Add a row with table header as part of repeat table and set merge preference as "Do not Show Table, if all rows are empty"

9. Error/Symptom: Unable to simulate else-if in conditions.
Possible cause: Zoho Writer does not support else-if directly.
Recommended solution: Create multiple independent if-else blocks with mutually exclusive conditions as shown:

If Client_Type == "Premium"
    Show: "Welcome, Premium Client!"
Else
    If Client_Type == "Basic"
        Show: "Please consider upgrading to Premium."
    Else
        Show: "Hello, Guest! Sign up today."

  1. Watch : Using Conditions in Merge Template
  2. How to use date based conditions in Writer

        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                    All-in-one knowledge management and training platform for your employees and customers.

                                              Create. Review. Publish.

                                              Write, edit, collaborate on, and publish documents to different content management platforms.

                                              Get Started Now




                                                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                    Manage your brands on social media


                                                                      • Desk Community Learning Series


                                                                      • Digest


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Glossary


                                                                      • Desk Marketplace


                                                                      • MVP Corner


                                                                      • Word of the Day


                                                                      • Ask the Experts


                                                                        Zoho Sheet Resources

                                                                         

                                                                            Zoho Forms Resources


                                                                              Secure your business
                                                                              communication with Zoho Mail


                                                                              Mail on the move with
                                                                              Zoho Mail mobile application

                                                                                Stay on top of your schedule
                                                                                at all times


                                                                                Carry your calendar with you
                                                                                Anytime, anywhere




                                                                                      Zoho Sign Resources

                                                                                        Sign, Paperless!

                                                                                        Sign and send business documents on the go!

                                                                                        Get Started Now




                                                                                                Zoho TeamInbox Resources





                                                                                                          Zoho DataPrep Demo

                                                                                                          Get a personalized demo or POC

                                                                                                          REGISTER NOW


                                                                                                            Design. Discuss. Deliver.

                                                                                                            Create visually engaging stories with Zoho Show.

                                                                                                            Get Started Now








                                                                                                                                • Related Articles

                                                                                                                                • How to use conditional sections to generate personalized documents

                                                                                                                                  Overview Section conditions let you show or hide entire sections of a merge template based on the value of a merge field. This is especially useful for avoiding inline text conditions at the paragraph level, which can become complex when conditional ...
                                                                                                                                • How to enable or disable checkboxes using conditions in Mail Merge

                                                                                                                                  Overview In Zoho Writer merge templates, checkboxes can automatically reflect the selected options from your form or data source, appearing checked or unchecked based on values from Zoho Forms, Zoho CRM, Zoho Creator, spreadsheets, or other supported ...
                                                                                                                                • How to merge and send document via email in Zoho Writer

                                                                                                                                  Ask AI to explain this article: ChatGPT | Claude | Perplexity Overview The Merge and Send via Email option in Zoho Writer lets you generate personalized documents for each record in your data source and automatically send them via email. Each ...
                                                                                                                                • How to sort data in repeat blocks in merge templates

                                                                                                                                  Ask AI to explain this: ChatGPT | Perplexity | Claude Overview You can organize your repeat table data by sorting it using specific merge fields. For example, to list employees by department, and then by their date of joining within each department, ...
                                                                                                                                • How to setup fields in fillable templates in Zoho Writer

                                                                                                                                  Ask AI to explain this: ChatGPT | Perplexity | Claude Overview A fillable template in Zoho Writer is a document designed with interactive form fields that allow users to enter, edit, or submit data directly within the document, just like filling out ...
                                                                                                                                  Wherever you are is as good as
                                                                                                                                  your workplace

                                                                                                                                    Resources

                                                                                                                                    Videos

                                                                                                                                    Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                    eBooks

                                                                                                                                    Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                    Webinars

                                                                                                                                    Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                    CRM Tips

                                                                                                                                    Make the most of Zoho CRM with these useful tips.



                                                                                                                                      Zoho Show Resources