mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/Template Designer(DCP)/Hiding Table Rows in Word Templates

Hiding Table Rows in Word Templates

7 views 0

Microsoft Word provides a built-in font attribute that allows content to be hidden from view. This attribute can also be applied to entire table rows, enabling them to be shown or hidden based on Word’s Show/Hide (¶) option. This approach is useful when designing templates that contain information that may not be required in every document.  

One practical example is marking grouping headers as “hidden” so that certain grouping headers can be included or excluded from the final document as needed.  

How to hide table rows

Step 1: Create your table and select your row

Start by enabling the Show/Hide (¶) button on the Home tab. Then, create or open a table that contains the information you want to display in your document. Select the entire row that you want to hide, as shown below. 

The Show/Hide button and our row highlighted
Figure 1: The Show/Hide button and our row highlighted 

Step 2: Apply the “hidden” attribute

Click the ❶ Font dialog launcher in the lower right-corner of the Font group on the Home tab. In the Font dialog, under Effects, select the ❷ Hidden checkbox and click ❸ OK. 

Applying the hidden attribute in the font dialog launcher
Figure 2: Applying the hidden attribute in the font dialog launcher

Step 3: Color the hidden rows red

Once the row is hidden, select all content in the hidden row and change the font color to red. This practice helps you quickly identify hidden rows while editing the template. The red formatting will remain hidden in the final document since the row content is marked as hidden text. 

Changing the font color to red
Figure 3a: Changing the font color to red

Alternatively, you can color the row red and leave the text within the row black. This can be convenient when the row is only conditionally hidden, ensuring that the text is left untouched in the result document if it ends up displayed. 

Changing the row’s whitespace red. This still denotes the row as hidden while keeping the text unchanged.
Figure 3b: Changing the row’s whitespace red. This still denotes the row as hidden while keeping the text unchanged. 

Viewing the hidden rows

The visibility of hidden rows depends on Word’s Show/Hide (¶) setting. With Show/Hide (¶) enabled, hidden rows are displayed as blank rows in the template for editing purposes, as shown below. 

Hidden row appearing as a blank row with Show/Hide enabled
Figure 4: Hidden row appearing as a blank row with Show/Hide enabled

When the document is generated and Show/Hide (¶) is disabled, hidden rows do not appear in the generated document.

The generated document with Show/Hide disabled
Figure 5: The generated document with Show/Hide disabled 

Practical use case: Grouping contact fields

The following example demonstrates how a grouping header can be hidden within a table in a generated document using condition fields. In the following Contact table, we will group the contacts by job title and mark the corresponding grouping header row as “hidden” while keeping the field itself visible. This will give us control over displaying certain headers. 

Step 1: Create the contact section with grouping

Create a table that contains the grouping header and the related contact information. In the table below, we are using the Job Title field to group our contacts.  

For more information about grouping, see here.  

Our table with grouped contact information
Figure 6: Our table with grouped contact information 

Step 2: Adding a condition field

In the grouping header, add a condition from the contact relation that will only be displayed if the job title is “Sales Representative.”  In our example, this is how the condition field is built:

Our configured condition
Figure 7: Our configured condition

Once the condition field has been added to the grouping header, place the Job Title field into the condition. Note that we have marked the row as red, but the text is still black.

Hidden grouping header row with our condition
Figure 8: Hidden grouping header row with our condition 

Step 3: Hiding the rows

Next, highlight the entire row and mark it as “hidden,” but mark the field text as not “hidden.” With these options enabled, the row itself will be hidden, but the text within will remain visible as shown in the image below. 

Configuring the text within the field to be visible
Figure 9: Configuring the text within the field to be visible

This means that, when the document is generated, the condition is evaluated and the row is displayed only if the contact’s Job Title equals Sales Representative. If the condition is not met, the row remains hidden and does not appear in the generated document. 

Step 4: The result

When generating the document, the table initially appears as follows with Word’s Show/Hide (¶) feature enabled: 

Generated document with Show/Hide enabled. Note the empty grouping headers.
Figure 10a: Generated document with Show/Hide enabled. Note the empty grouping headers. 

When Word’s Show/Hide (¶) feature disabled, the hidden formatting is not visible, and only the rows that meet the condition are displayed.

Generated document with Show/Hide disabled
Figure 10b: Generated document with Show/Hide disabled 

Tags:hide rowshiding table rowshidden rowsshow hide

Was this helpful?

Yes  No
Related Articles
  • Creating a Conditional Row in a Table 
  • Why do companies struggle to automate document processes in Dynamics 365?
  • Debugging the Template Designer Office Add-In 
  • Introducing the DocumentsCorePack Template Designer Office Add-In
  • Ensuring correct time zone display for DateTime fields
  • How to compare a date-fields with the current date 
Latest Articles
  • Hiding Table Rows in Word Templates
  • Creating a Conditional Row in a Table 
  • Recap: Scottish Summit 2026
  • Add Document Generation to Your Apps with AI
  • Recap: Nordic Summit 2026
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How licenses are counted
  • How to find your environment’s unique name in Microsoft Dynamics 365
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • Step-by-Step: How to configure a One-Click-Action
Categories
  • DCP for BC 2
  • *News and General Infos* 85
  • Webinars 49
  • Template Designer(DCP 200
  • DocumentsCorePack(DCP 277
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 81
  • PowerSearch (PS 50
  • ActivityTools (AT 61
  • SmartBar (SB 54
  • GroupCalendar (GC 47
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • Cookies
  • © 2025 www.mscrm-addons.com. All Rights Reserved.