Group contract documents by contract type in a contract request
As an administrator, group the contract documents by contract type in a contract request.
Before you begin
Role required: admin
About this task
Note: In Legal Counsel Center and Contract Workspace, the contract documents are grouped based on the contract type, by default.
Customize the Standard Record Page (SRP) to display contract documents grouped by contract type in the Contract document tab through UI Builder, a web user interface builder. For more information, see UI Builder.
[Omitted image "cmpro-bu-ctypr-grouping-result.png"] Alt text: Grouping of contract documents
Procedure
-
Navigate to Now Experience Framework > UI Builder.
-
Search and select your workspace.
-
Navigate to Record > SRP record.
-
In the Page content list, under Body > Resizable panes > left > Main Tab > Related List, select list related.
[Omitted image "cmpro-bu-ctype-group-related-list.png"] Alt text: Select related list configuration for your workspace
-
In the Configure pane, select Group by field.
[Omitted image "cmpro-bu-ctype-group-script.png"] Alt text: Select group from the Configure pane
-
Enter the following code in the Group by field:
JavaScriptfunction evaluateProperty({api, helpers}) { var isContractRequestForm = api.item.value.parentTable =="sn_cm_core_contract_request"; var isContractRevisionTab = api.item.value.table == "sn_cm_core_document_revision"; if( isContractRequestForm && isContractRevisionTab){ return 'document'; }return '';}Note: If the field is not editable, select the scope applicable to your workspace in the Select an application drop-down list at the top of the page.
-
Select Apply.
Result
The contract documents will be grouped by contract type in the Contract document tab while viewing a contract request.
Parent Topic:Add and configure contract request functionality into your workspace
Related topics
Configure non-task tables for contract templates
Add a workspace action button for initiating a contract request
Add Contract requests tab to the contract request record
Add Contract documents tab to the contract repository record
Add amendment tabs to contract repository record
Copy fields from parent request to contract request
Add access to obligation management from contract repository records
Configure the contract request form header
Assign a role for configuring template mappings
---
title: Group contract documents by contract type in a contract request
description: As an administrator, group the contract documents by contract type in a contract request.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/employee-service-management/contract-management-pro/cncore-config-srp-grouping.html
release: brazil
product: Contract Management Pro
classification: contract-management-pro
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 2
keywords: [BU configuration, Group contract documents, Uptake steps CM Pro]
breadcrumb: [Configure CM Pro for your workspace, Configure, Contract Management Pro, Legal and Contract Operations, Employee Service Management]
---
# Group contract documents by contract type in a contract request
As an administrator, group the contract documents by contract type in a contract request.
## Before you begin
Role required: admin
## About this task
**Note:** In Legal Counsel Center and Contract Workspace, the contract documents are grouped based on the contract type, by default.
Customize the Standard Record Page \(SRP\) to display contract documents grouped by contract type in the Contract document tab through UI Builder, a web user interface builder. For more information, see [UI Builder](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder-overview.md).
\[Omitted image "cmpro-bu-ctypr-grouping-result.png"\] Alt text: Grouping of contract documents
## Procedure
1. Navigate to **Now Experience Framework** > **UI Builder**.
2. Search and select your workspace.
3. Navigate to **Record** > **SRP record**.
4. In the Page content list, under **Body** > **Resizable panes** > **left** > **Main Tab** > **Related List**, select **list related**.
\[Omitted image "cmpro-bu-ctype-group-related-list.png"\] Alt text: Select related list configuration for your workspace
5. In the **Configure** pane, select **Group by** field.
\[Omitted image "cmpro-bu-ctype-group-script.png"\] Alt text: Select group from the Configure pane
6. Enter the following code in the **Group by** field:
```
function evaluateProperty({api, helpers}) {
var isContractRequestForm = api.item.value.parentTable =="sn_cm_core_contract_request";
var isContractRevisionTab = api.item.value.table == "sn_cm_core_document_revision";
if( isContractRequestForm && isContractRevisionTab){
return 'document';
}
return '';
}
```
**Note:** If the field is not editable, select the scope applicable to your workspace in the **Select an application** drop-down list at the top of the page.
7. Select **Apply**.
## Result
The contract documents will be grouped by contract type in the Contract document tab while viewing a contract request.
**Parent Topic:**[Add and configure contract request functionality into your workspace](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/employee-service-management/contract-management-pro/cncore-uptake-steps.md)
**Related topics**
[Configure non-task tables for contract templates]()
[Add a workspace action button for initiating a contract request]()
[Add Contract requests tab to the contract request record]()
[Add Contract documents tab to the contract repository record]()
[Add amendment tabs to contract repository record]()
[Copy fields from parent request to contract request]()
[Add access to obligation management from contract repository records]()
[Configure the contract request form header]()
[Assign a role for configuring template mappings]()
[Enable contract request fields in condition builders]()
[Configuring the Playbook tab on contract repository records]()
| title | Group contract documents by contract type in a contract request |
| description | As an administrator, group the contract documents by contract type in a contract request. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/employee-service-management/contract-management-pro/cncore-config-srp-grouping.html |
| release | brazil |
| product | Contract Management Pro |
| classification | contract-management-pro |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 2 |
| keywords | BU configurationGroup contract documentsUptake steps CM Pro |
| breadcrumb | Configure CM Pro for your workspaceConfigureContract Management ProLegal and Contract OperationsEmployee Service Management |