Setting Segments in Templates
Set Segment feature allows you to set conditions and style for any text you highlight in your contract template. The condition for the segment's visibility can be set from the expression builder. The segment can consist of the highlighted text, a clause, a group of text across clauses, or text with fields. You can leverage this feature to create a template that can show or hide different segments of text in the generated contract based on the conditions set by you. The expression builder is fully integrated with the objects and fields in your Conga CLM.
To make a Segment Conditional in a template
A success message is displayed after you save the segment. You can then view the following:
If you select a clause and mark it as a segment, then the selected clause displays under the Clauses tab and the entire segment displays under the Segment tab.
If you select a field from a template and mark it as a segment, then the selected field displays under the Fields tab and the segment displays under the Segment tab.
If you select a field from a Clause Template and mark it as a segment, the selected field displays under the Fields tab and the segment displays under the Segment tab.
If you create a Clause Template with fields and text, then apply the segment on all clause content, the fields display under the Fields tab and the segment displays under the Segment tab.
If you select a clause with field, apply the segment only to a field, check-in the clause and then insert it to a template, the selected clause segment only displays in the Clauses tab.
If you select an entire repeat table, repeat section, or repeat section with a 3rd level repeat table, then mark it as a segment, the selected repeat table content display under the Fields tab and the segment displays under the Segment tab.
If you select a field from a repeat table and mark it as a segment, the selected field segment displays under the Fields tab only.
If you mark Conditional, Style, or Dynamic segments with text only, they only display under the Segments tab.
A Lighting icon is displayed next to the newly added segment. Click the Lighting icon to view the conditions added to the particular segment.
Selecting the segment name from the list highlights that segment in the template document.
Selecting the segment name from the list highlights that segment in the template document.
To view or edit a segment condition
- Open Microsoft Word and log in to X-Author for Contracts Advanced.
-
From the Contracts pane, click the Home icon (
) and select Templates.
-
In the Templates pane, go to Work tab, click the Dropdown icon (
)and select Segments.
-
Select the Segment from the segments list and click the Settings icon (
) next to the segment name. This opens the Segment Settings page. where the Segment Type is set to Conditional for that segment. To edit the conditional, click the Edit button (
) next to Condition. At the time of contract generation, if your conditional value evaluates to true, the associated segment is shown in the contract document.
To create a nested segment
A nested segment is one where you can insert a segment inside an existing segment. To insert nested segment:
- Open Microsoft Word and log in to X-Author for Contracts Advanced.
- From the Contracts pane, click the Home button (
) and select Templates.
- In the Templates pane, go to Work tab, click the Dropdown button (
)and select Segments. Open the segment that you need to add a nested segment to.
- Highlight a block of text inside the segment and click Conditional. .
This opens the Segment Condition dialog box that contains the expression builder. For more information on how to create condition, see Making Segment Conditional. Now you have created a nested segment.
To delete a conditional segment in a template
Your segment is successfully deleted and the content control boundary of your segment is removed.
To set a style for a segment in a template
To view or edit a segment style
To delete a style for a segment in a template
Your segment is successfully deleted and the content control boundary of your segment is removed.
Use Case: Setting Conditional Segments in Contract Templates to Control Content Visibility
This use case provides an example of how to use the Set Segment feature in X-Author for Contracts Advanced to dynamically show or hide sections of a contract template based on contract data conditions. Your implementation may vary based on your specific business requirements.
Business Context
Organizations that manage a high volume of contracts often need a single master template to serve multiple contract scenarios—for example, contracts that include a liability limitation clause only when the deal value exceeds a defined threshold, or contracts that display specific warranty terms only for customers in regulated industries. Manually maintaining separate templates for each variation is error-prone and difficult to govern. By using conditional segments, a contracts team can embed logic directly into a template so that the correct clauses appear automatically during contract generation, reducing manual intervention and ensuring compliance with negotiated standards.
Overview
This use case demonstrates how a contracts administrator at a software company uses the Set Segment feature in X-Author for Contracts Advanced to mark a limitation-of-liability clause as a conditional segment. The segment is configured to appear in the generated contract only when the value of the Contract Type field on the Contract record in Conga CLM equals Enterprise. This ensures that standard commercial contracts do not include the enterprise-specific clause, while enterprise agreements automatically display it without any manual editing.
The Set Segment feature allows a user to highlight any text in a Word template—a clause, a group of clauses, a field, or a mixed block of text and fields—and assign it a visibility condition that is evaluated at the time of contract document generation. The expression builder is fully integrated with the objects and fields in Conga CLM.
Actors
- Contracts administrator at a software company — Creates and configures conditional segments in contract templates using X-Author for Contracts Advanced.
- X-Author for Contracts Advanced — Evaluates segment conditions at contract generation time and includes or excludes the relevant text blocks accordingly.
- Conga CLM — Supplies the object and field data (for example, Contract Type) that the expression builder references when defining segment conditions.
Prerequisites
- X-Author for Contracts Advanced is installed and the contracts administrator has access to Microsoft Word with the X-Author add-in loaded.
- The contract template to be modified already exists and is accessible from the Templates pane in the X-Author Contracts pane.
- The Contract Type field (or the field to be used as the condition) is configured in Conga CLM and its values include Enterprise.
- The contracts administrator has the required permissions to check out and edit templates in Conga CLM.
Scenario
A contracts administrator at a software company maintains a master services agreement (MSA) template used for all customer contracts. The legal team has determined that a Limitation of Liability clause must appear only in enterprise-tier contracts. The administrator needs to mark the clause as a conditional segment so that X-Author for Contracts Advanced automatically includes or excludes it based on the Contract Type value stored in Conga CLM.
Trigger
The legal team notifies the contracts administrator that the Limitation of Liability clause must be restricted to enterprise contracts only. The administrator opens the MSA template in Microsoft Word to configure the conditional segment.
Tasks
Task 1: Open the template and navigate to Segments
- Open Microsoft Word and log in to X-Author for Contracts Advanced.
- From the Contracts pane, click the Home icon and select Templates.
- In the Templates pane, go to the Work tab, click the Dropdown icon, and select Segments.
- Locate and open the MSA template that contains the Limitation of Liability clause.
Task 2: Create a conditional segment for the Limitation of Liability clause
- In the template document, highlight the entire text of the Limitation of Liability clause.
- Click Conditional. The Segment Condition dialog box opens, displaying the expression builder.
- In the Segment Name field, replace the default name (Segment Conditional) with a descriptive name such as Enterprise Liability Clause. The name must not exceed 40 characters.
- In the expression builder, configure the condition as follows:
- Field: Select Contract Type from the Contract object field list in Conga CLM.
- Operator: Select Equals.
- Value: Enter Enterprise.
- Click Test to verify that the logic expression is valid. If the test returns an error, review the field, operator, and value selections before proceeding.
- Click Save. A success message confirms that the segment has been saved.
Task 3: Verify the segment in the Segments tab
- In the Segments pane, confirm that Enterprise Liability Clause appears in the segments list.
- Click the segment name to confirm that the corresponding clause is highlighted in the template document.
- Click the Lightning icon next to the segment name to review the condition that was configured.
Task 4: (Optional) Add a nested segment within the conditional segment
If the Limitation of Liability clause contains a sub-clause that requires a further nested condition—for example, a specific indemnification paragraph that applies only to Enterprise SaaS contracts—the administrator can add a nested segment:
- In the Segments pane, open the Enterprise Liability Clause segment.
- Highlight the sub-clause text inside the existing segment.
- Click Conditional and configure the inner condition using the expression builder (for example, Contract SubType Equals SaaS).
- Click Save.
Result
The Limitation of Liability clause is saved as a conditional segment named Enterprise Liability Clause within the MSA template. When a contract document is generated from this template:
- If the Contract Type field value in Conga CLM equals Enterprise, the conditional expression evaluates to true and the clause is included in the generated document.
- If the Contract Type field holds any other value, the clause is automatically excluded from the generated document.
The segment appears in the Segments tab of the Contracts pane. If the clause also contains fields, those fields appear under the Fields tab, and the overall segment entry appears under the Segments tab.
Next Steps
- Apply style segments to other sections of the template to control text formatting dynamically at generation time (for example, applying a Highlighted style to pricing terms that are still under negotiation).
- Review all conditional segments before each template version release to confirm that field names and values remain aligned with the Conga CLM data model.
- Communicate the new template behavior to the contracts team so that users understand that clause visibility is now driven automatically by contract data, not manual editing.
Tips and Best Practices
- Use descriptive segment names (up to 40 characters) that identify the clause and its condition at a glance—for example, Enterprise Liability Clause rather than Segment 1. This makes it easier to manage segments as the template grows in complexity.
- Always click Test before saving a condition expression. An untested or invalid expression may cause segments to always be hidden or always be shown during document generation.
- Use the Custom Logic field to define complex multi-row conditions with AND/OR
operators and parentheses. For example, a logic expression such as
(1 AND 2) OR 3allows for nuanced visibility rules that cannot be expressed with a single field-operator-value row. - Limit nesting depth to maintain template readability and to simplify future maintenance. Deeply nested segments can become difficult to troubleshoot when conditions interact unexpectedly.
- Null values are supported in the Value field of the expression builder, which is useful for handling records where a CLM field has not yet been populated.
- After deleting a segment, the content control boundary is removed but the underlying text remains in the template. Always review the template after a deletion to confirm the text formatting is intact.
