Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Show Page Sections

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

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon() and select Templates.
  3. In the Templates pane, go to Work tab, click the Dropdown icon ()and select Segments.
  4. Highlight a block of text in your template and click Conditional.
    This opens the Segment Condition dialog box that contains the expression builder.
  5. Enter a Segment Name. By default, the name "Segment Conditional" populates, but you can change the name. This field is mandatory and allows a maximum of forty (40) characters. Alphanumeric, special characters, and spaces are permitted. If the field is blank, you will not be able to save your segment. You can search for this name using the search bar in the Segments tab.
  6. In the Segment Condition dialog box, you can create a conditional expression and also create a complex expression using logical operators between multiple rows of conditions. To create an expression you must enter the values of the following three fields:

    Field Name

    Description

    Field

    Select the field which you want to set as the criteria for the condition. The Field drop-down shows the Contract object and its fields from Conga CLM. You must select a field name. The fields are listed and grouped according to their hierarchy.

    Operator

    You must select the logical operator from the drop-down. This forms the relationship between the field and its value.

    Value

    Enter the value of the field name selected in the field. Null values are also supported.

  7. Click Add row to create additional expressions for the same column. You can create up to a maximum of nine filters for a single column.
  8. Enter Custom Logic to add a logical relation between multiple rows. The supported filter logic operators are AND and OR. You can use parentheses for setting the precedence. For example, if you have five rows you can create a filter logic, like (((1 AND 3) OR (2 AND 4)) AND 5). In the absence of custom logic, the default relationship between the rows is the Boolean operator AND.
  9. Click Test to check whether your filter logic expression is correct.
    If your logic is incorrect, you will see a message in red.
  10. Click Save to save your table filters and return to your document.

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

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon () and select Templates.
  3. In the Templates pane, go to Work tab, click the Dropdown icon ()and select Segments.
  4. 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:

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home button () and select Templates.
  3. 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.
  4. 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

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon () and select Templates.
  3. In the Templates pane, go to Work tab, click the Dropdown icon ()and select Segments.
  4. Select the segment from the segment list.
    The selected segment is highlighted in the template.
  5. Click the Settings icon () next to the segment name to open the Segment Settings page.
  6. Click Delete Segment. You will see a confirmation message. Click Delete again.

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

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon () and select Templates.
  3. In the Templates pane, go to Work tab, click the Dropdown icon ()and select Segments.
  4. Highlight a block of text in your template and click Style.
    This opens the Select Styles dialog box that lists custom styles.
  5. Enter a Segment Name. By default, the name "Segment Regular" populates, but you can change the name. This field is mandatory and allows a maximum of forty (40) characters. Alphanumeric, special characters, and spaces are permitted. If the field is blank, you will not be able to save your segment. You can search for this name using the search bar in the Segments tab.
  6. Select a custom style or select the Show template styles checkbox and select a style.
  7. Click Save.
The segment is added as Segment Regular (or the custom name you entered) to the segments list in the Segment pane.
Selecting the segment name from the list highlights that segment in the template document.

To view or edit a segment style

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon () and select Templates.
  3. In the Templates pane, go to Work tab, click the Dropdown icon ()and select Segments.
  4. Select Segment Regular (or the custom name of your segment) from the segments list in the Segments pane and click the Settings icon () next to the segment name.
    This opens the Segment Settings page where the Segment Type is set to Regular for that segment.
  5. To edit the style, click the Edit icon () next to Style.
  6. To add a segment condition, click Add Condition.
    This opens the Segment Condition window which has the expression builder. For more information, see To make a Segment Conditional in a template. After adding a condition to the segment, a Lightning icon () is added. Segment Regular style segment changes to Segment Conditional after you add a condition. When you generate a document using a template with style segments, you can view the different styles applied in the generated document.

To delete a style for a segment in a template

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon () and select Templates.
  3. In the Templates pane, go to Work tab, click the Dropdown icon () and select Segments.
  4. Select the segment from the segment list.
    The selected segment is highlighted in the template.
  5. Click the Settings icon () next to Segment Regular to open the Segment Settings page.
  6. Click Delete Segment. You will see a confirmation message. Click Delete again.

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

  1. Open Microsoft Word and log in to X-Author for Contracts Advanced.
  2. From the Contracts pane, click the Home icon and select Templates.
  3. In the Templates pane, go to the Work tab, click the Dropdown icon, and select Segments.
  4. 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

  1. In the template document, highlight the entire text of the Limitation of Liability clause.
  2. Click Conditional. The Segment Condition dialog box opens, displaying the expression builder.
  3. 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.
  4. 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.
  5. 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.
  6. Click Save. A success message confirms that the segment has been saved.

Task 3: Verify the segment in the Segments tab

  1. In the Segments pane, confirm that Enterprise Liability Clause appears in the segments list.
  2. Click the segment name to confirm that the corresponding clause is highlighted in the template document.
  3. 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:

  1. In the Segments pane, open the Enterprise Liability Clause segment.
  2. Highlight the sub-clause text inside the existing segment.
  3. Click Conditional and configure the inner condition using the expression builder (for example, Contract SubType Equals SaaS).
  4. 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 3 allows 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.