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.

Formatting Clause Data

The CLM (Contracts for Salesforce) managed package includes functionality to clean certain HTML tags from the rich text editors for Clauses and Managed Clauses due to limitations with the Salesforce rich text editor.

For Composer to properly merge clauses into documents, the custom settings included in the managed package must clean the Clause HTML due to the following limitations with Salesforce rich text fields:

  • When a rich text area field is edited in Salesforce, <p> tags are automatically added to each line in the text. If clause text is merged as an ordered or unordered list in a Word document and <p> tags exist within the clause text, a line break is added in the Word output after each clause. Within the ordered or unordered list, this results in a blank list item after each clause.

  • If an ordered or unordered list exists within the clause rich text, the HTML <ol> or <ul> tags add a line break at the end of the list. This results in a blank list item after the last list item.

Enabling Clause Cleaning Settings

  1. Open Salesforce Setup.
  2. In the Quick Find Bar, search for Custom Settings.
  3. Click Manage.
  4. Check or uncheck the following settings based on your use case:
    • Enable Replace P Tags: replaces <p> tags with <span> tags
    • Enable Clean OL Tags: removes <ol> (ordered list) tags from clause text. Only enable if you are not using ordered lists in your clause rich text fields in Salesforce

    • Enable Clean UL Tags: removes <ul> (unordered list) tags from clause text. Only enable if you are not using unordered lists in your clause rich text fields in Salesforce

    • Enable Remove Style: removes all HTML styling from clauses. Not recommended to use this unless directed by Conga PS or Conga Support

  5. Click Save.

After these settings are enabled, the managed package will automatically update newly created or edited rich text on the Clause or Managed Clause objects (field API name APXT_Redlining__Text_Rich__c on both objects).

Warning:

Enabling the settings listed above does not retroactively clean existing clause text. To clean existing clause text, edit and save the clause text field on the record after the settings are enabled.