Download PDF
Download page Setting Segment in Templates.
Setting Segment in Templates
This topic contains instructions for Conga CLM (Contracts for Salesforce) users. If you are a Conga CLM user and you are looking for information regarding setting segments in a template, see Setting Segments in Templates.
Set Segment feature allows you to set conditions and style for the highlighted text in your agreement 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. Use this feature to create a template that can show or hide different segments of text in the generated agreement based on the conditions set by you. The expression builder is fully integrated with the objects and fields in your Salesforce org.
To make a Segment Conditional in a template
- Open Microsoft Word and log in to X-Author for Contracts for Conga CLM (Contracts for Salesforce).
- In the Templates pane, go to Work tab, click the More icon () and select Segment.
- Highlight a block of text in your template and click New Segment. This opens the Segment Condition window which has the expression builder.
In the Segment Condition window, 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 Description Field Select the field which you want to set as the criteria for the condition. The Field drop-down shows the Contract Agreement object and its fields from your Salesforce org. 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. Click Add row to create additional expressions for the same column. You can create up to a maximum of 9 filters for a single column.
- 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 5 rows you can create a filter logic like, (((1 AND 3) OR (2 AND 4)) AND 5). In the absence of a filter logic, the default relationship between the rows is the Boolean operator AND.
- Click Test to check whether your filter logic expression is correct. If your logic is incorrect, you will see a message in red.
- Click Save to save your table filters and return to your document.
You will see the success message and your segment will be added as Segment Conditional to the segments list in the Set Segment pane. A lightning icon () is displayed next to the newly added segment. Click the Lightning icon () to view the conditions added to the particular segment.
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 for Conga CLM (Contracts for Salesforce).
- In the Templates pane, go to Work tab, click the More icon () and select Segment.
- Select the Segment Conditional from the segments list in the Segments pane.
- Click the Settings icon () 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 icon () icon next to Condition.
At the time of agreement generation, if your conditional's value evaluates to true, the associated segment is shown in the agreement document.
To delete a conditional Segment in a template
- Open Microsoft Word and log in to X-Author for Contracts for Conga CLM (Contracts for Salesforce).
- In the Templates pane, go to Work tab, click the More icon () and select Segment.
- Select the segment from the segment list. The selected segment is highlighted in the template.
- Click the Settings icon () next to the segment name to open the Segment Settings page.
- 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
- Open Microsoft Word and log in to X-Author for Contracts for Conga CLM (Contracts for Salesforce).
- In the Templates pane, go to Work tab, click the More icon () and select Segment.
- Highlight a block of text in your template and click Set Style. This opens the Select Styles window that lists custom styles.
- Select a custom style or select the Show template styles checkbox and select a style.
- Click Save.
The segment is added as Segment Regular to the segments list in the Set Segment pane. Selecting the segment name from the list highlights that segment in the template document.
To view or edit a segment style
- Open Microsoft Word and log in to X-Author for Contracts for Conga CLM (Contracts for Salesforce).
- In the Templates pane, go to Work tab, click the More icon () and select Segment.
- Select Segment Regular from the segments list in the Segments pane and click the Settings icon() next to the segment name.
This opens the Segment Regular page with the segment style set for that segment. - To edit the style, click the Edit icon () next to Style.
- 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 Lighting 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 different styles applied in the generated document.
To delete a style for a segment in a template
- Open Microsoft Word and log in to X-Author for Contracts for Conga CLM (Contracts for Salesforce).
- In the Templates pane, go to Work tab, click the More icon () and select Segment.
- Select the segment from the segment list. The selected segment is highlighted in the template.
- Click the Settings icon () next to Segment Regular.
- 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.