Template Editor Feature Reference

Template Editor is intended to create and edit HTML-based templates for documents being signed. It has several sections grouped by functionalities.

Available Features

Template Editor is based on the open-source project, CKEditor 5. To view the basic features, go to the CKEditor 5 Documentation portal.

Also, there are dedicated Salesforce-specific features.

If you want to add your HTML template, use the 18-digit IDs for these images.

Template Editor Features

Salesforce Fields

Add a marker to display the value of the selected field of the object to sign. A marker will be replaced by the value of the indicated field while forming a document. If the required field is empty, the marker will be replaced with a blank space.

To add a field:

  1. Click the Salesforce Field button – Salesforce Fields.

  2. Select an available field in the Field token to Insert picklist.

    Add Salesforce Fields

  3. Click OK.

The Salesforce field is added. On the template layout, the API name of the field is shown.

Salesforce Table

Salesforce table allows displaying values from the fields of the related object. The rows of the table are filled out with the Value word during the editing of a template and replaced with real value while forming a document. If the related field of the object’s record is empty, the marker will be replaced with a blank space.

Use the Salesforce table to display Salesforce data in a document for signing according to the specified conditions.

  1. Click the Salesforce table Salesforce Table icon.

  2. Fill in the information:

    • Define Columns, Width and Height, and the size of the outside Borders.

    • Define the space between cells in Cell spacing and a cell height in Cell padding.

    • Define the Alignment of the text in the table.

    • Add the table name in the Caption.

    • Add a description in the Summary. The description will not be shown in a template.

    • Select the object from which the values will be added to the table.

  3. On the Salesforce Table Properties tab:

    • In the objectCondition field, enter a SOQL filter to display only eligible records of the selected child object.

    • In the showCondition field, enter a SOQL filter to display the Salesforce table only on the matched records of the parent object.

  4. Click OK. The table is added to the template.

  5. To define fields that will be displayed in the Salesforce table, click the Source button and edit the HTML code. For example, to define 3 headers (Delivery Date, Address, Total Price), insert the following code:

    <table border="1" cellpadding="1" cellspacing="1" child-table="orders__Delivery__c" objectcondition="SELECT orders__DeliveryDate__c, Address__c, orders__TotalPrice__c FROM orders__Delivery__c" style="width:500px;" summary="delivery-table">
    <caption>Delivery</caption>
    <thead>
    <tr>
    <th scope="col">Delivery Date</th>
    <th scope="col">Address</th>
    <th scope="col">Total Price</th>
    </tr>
    </thead>
    <tbody>
    </tbody>
    </table>

    As a result, you will get the following:

    ctsign table headers

  6. Click OK.

The Salesforce table is set.

Here are some examples:

  • SOQL filter to output the template only to the matching contacts of the parent Organization record.

    <table border="1" cellpadding="1" cellspacing="1" child-table="orders_OrderLineItem_c" class="forcetable" id="forcetable-6"&nbsp;objectCondition="SELECT Name, FirstName FROM Contact WHERE AccountId = '{!MainObjectId}'">
  • SOQL filter to display the table only on matching Visit records.

    <table border="1" cellpadding="1" cellspacing="1" child-table="orders_OrderLineItem_c" class="forcetable" id="forcetable-6"&nbsp;showCondition="FROM RetailVisitKpi WHERE AssessmentTaskId.TaskType = 'PlanogramCheck' AND ParentId = '{!Visit.Id}'">

Create a Signature button

The Signature button should be specified for each signer to the template. The selected parameters of the button will affect the list of available signers, signature type, authorization type, etc.

The list of parameters that should be specified:

Parameter Description

Signatory

Title

The button name is displayed on the generated PDF document.

Signatory Type

Select the object to add as a signatory. Available values:

  • Contact: the Contact record;

  • User: the User record specified in the OwnerId field of the selected record of the object to sign.

Signatory Source Type

Available when Contact is selected as Signatory Type.

Available values:

  • Field: if there is only one signatory linked to the record of the object to sign via the Signing Contact field on the Account object;

  • List: select a signing contact from the picklist of all available contacts of the Contact from the Signatory Type field.

Signatory Source Reference

It defines with which object the signatory is associated. Available values:

  • Direct: a link via the reference field on the Account object.

  • Reference: one or more signatories are linked to the record of the parent object of the object to sign via the reference field, for example, Parent Account ID Contacts.

Select Signatory

Select a field that stores the signatory records according to the Signatory Source Reference value:

  • for Direct: the Signing Contact field.

  • for Reference, select one of the available fields:

    • Parent Account ID Contacts

    • Owner ID Contacts

    • Signing Contacts Contacts

Signature Type

Select a verification type. Available values:

  • without an e-signature provider:

    • Handwritten signature

    • Proof of Consent

      Currently, this type is not available for CT Mobile iOS users.
  • using an e-signature provider provides two types of legally binding signatures:

    • Electronic: simple electronic signature with the additional verification by SMS/Phone;

    • EU Advanced: advanced electronic signature under EU Regulation No 910/2014.

Signature Place

Available when the Provider is DocuSign.

Select how to confirm the signature. Available values:

  • Device: via the in-app browser of the CT Mobile app (embedded signing). NOTE: If there is no internet connection, a mobile user cannot use the embedded signing. To learn more, go to Handle Offline Flow.

  • Email

Authorization Type

Available when the Provider is DocuSign.

Select how to authorize a signatory. Available values:

  • SMS

  • Phone

    Not applied when Signature Type is EU Advanced.
  • No Auth (authorization is not required)

Image Width, px

Available when the Provider is Simple.

Specify the width of the attached signature.

Image Height, px

Available when the Provider is Simple.

Specify the height of the attached signature.

X-Offset

Required when the Provider is DocuSign.

The horizontal indent.

Y-Offset

Required when the Provider is DocuSign.

The vertical indent.

Notification

Signature Require Notification

The template title according to which the notification letter is generated with signing demand.

Document Signed Notification

The template title according to which the letter is generated with the notification about signing.

Table 1. test
Header 1 Header 2 Header 3

Column 1, row 1

Column 2, row 1

Column 3, row 1

[.highlight-row]

Column 1, row 2

Column 2, row 2

Column 3, row 2

Column 1, row 3

Column 2, row 3

Column 3, row 3

``