Document Designer Attributes

Overview

Attribute values that dynamically fill a template with current Transaction, user, and product data are what makes the Document Designer more than just a static template in a word processor. Adding current data to the template—while the output is being created—is a big part of what makes the Document Designer so valuable.

Document Designer Attribute Examples

Administration

ClosedWhere Attribute Values can be Added

Attribute values can be added to Text and Heading Elements. There are five types of attributes that can be added in the Document Designer:

  • Template (Page Number and Total Page Number)
  • Main Document (Transaction /Quote-level attributes)
  • Sub-Document (Transaction Line/Line-level attributes)
  • User (Current user attributes)
  • Configuration (Configuration attribute values)

Template, Main Document, and User attributes are always available to be added within Text or Heading Elements. Sub-Document and Configuration attributes can only be added to Text or Heading Elements that have a Loop applied to them, or are within an Element, Layout, or Table row that has a Loop applied to it. For more information on Loops, see the topic Document Designer and Loops.

Configuration attributes are only available to be added when the Text or Heading Element has, or is inside of an Element or Layout that has, a Loop that loops over All Line Items or Model Line Items.

ClosedAdd Attributes

To add attribute values to a Text or Heading Element:

  1. Double-click the Text/Heading attribute in the Template Flow to open the Text Element editor window.
  2. Begin typing the name of the attribute whose value you want to add into the Attribute field. As you type, attributes that are similar in name to what you are typing will be suggested in a drop-down.

    Type to filter attributes

  1. When you see the attribute you want to add, click the attribute within the drop-down to select it.

    The attribute name and variable name now appear in the Attribute field.

    Attribute field

  1. Click Add to add the attribute value to the Element.
  2. Click OK to save the Element.

ClosedAdd eSignature Attributes

Users can add dynamic data for standard DocuSign tags to Document Designer templates. Each tag defined in the DocuSign application has associated anchor text. Users can place this anchor text in a Document Designer Text Element. When a signature is requested and the document is sent to DocuSign, the anchor tags are interpreted by DocuSign as the locations where a user can provide the relevant information.

The below DocuSign tags are available in the eSignature Set, which holds the eSignature attributes.

  • Signature
  • Optional Signature
  • Initial
  • Optional Initial
  • Signer Attachment
  • Full Name
  • Company
  • Title
  • Date Signed
  • Decline

For example: The Document Designer Text Element dialog shown below illustrates anchor text for Full Name 01, Optional Signer 01, and Company 01.

Text Element dialog


ClosedAdd Transaction Arrays to Document Designer and Email Designer Documents

Transaction Array attributes can be added to Document Designer and Email Designer templates, for both main documents and sub-documents. Administrators can also iterate over the transaction array data set through loop editors, and add corresponding array attributes in relevant template elements.

ClosedAdding Main Document Transaction Arrays

To add a main document transaction array attribute, a loop for the array must be created on a section, table, table row, text element, or XSL snippet element.

Add a Main Document Transaction Array

To add a transaction array to a main document and configure a loop over the array set items, perform the following steps:

  1. Navigate to the Document Designer templates.

    Admin > Commerce and Documents > Document Designer

  2. Select the Commerce Process, then click the applicable document link, the Document Designer Editor opens.
  3. Select a Section, Table, Table Row, Text Element, or XSL Snippet Element.

     Document Designer Editor

  4. Click the Loop button in the Dynamic Content Bar. The Loop editor opens.
  5. Select Transaction Array Sets from the Loop On drop-down.

    Select Transaction Array Sets from the Loop On drop-down

  6. Select the applicable array set from the Transaction Array Sets drop-down.
  7. (Optional) Select an attribute to sort by from the Sort By drop-down.
  8. (Optional) Select a sort type from the Sort Type drop-down.
  9. (Optional) Add a Filter to the Loop by clicking Yes for Filter, then define the filter criteria.
  10. (Optional) Click Advanced to convert a Loop to an Advanced Loop that displays in XSL format.

    Convert a Loop to an Advanced Loop

  11. Click OK to save the Loop. The Loop icon Loop icon is added to the template element.
  12. Add the Transaction Array Attributes.

    Add the Transaction Array Attributes.

  13. Save and Deploy the template.

ClosedAdding Sub-Document Transaction Arrays

To add a sub-document transaction array attribute, a loop for the array must be nested within a sub-document (i.e. Line Item) loop. The "outer" loop must exist on a section or a table row, and it must loop over Line Items (model or part). The nested loop can be created on a table row, a text element, or an XSL snippet element.

Add a Sub-Document Transaction Array

To add a sub-document transaction array and configure the nested Loop to loop over the array set items perform the following steps:

  1. Navigate to the Document Designer templates.

    Admin > Commerce and Documents > Document Designer

  2. Select the Commerce Process, then click the applicable document link. The Document Designer Editor opens.
  3. Navigate to the element with a Line Item Loop.

    Add a Sub-Document Transaction Array

  4. Select a Section, Table, Table Row, Text Element, XSL Snippet Element within the Line Item Loop.
  5. Click the Loop button in the Dynamic Content Bar. The Loop editor opens.
  6. Select Transaction Line Array Sets from the Loop On drop-down.

    Select Transaction Line Array Sets from the Loop On drop-down

  7. Select the applicable array set from the Transaction Line Array Sets drop-down.
  8. (Optional) Select an attribute to sort by from the Sort By drop-down.
  9. (Optional) Select a sort type from the Sort Type drop-down.
  10. (Optional) Add a Filter to the Loop by clicking Yes for Filter, then specify the filter criteria.
  11. (Optional) Click Advanced to convert a Loop to an Advanced Loop that displays in XSL format.

    Convert a Loop to an Advanced Loop

  12. Click OK to save the Loop. The Loop icon  Loop icon is added to the template element.
  13. Add the Transaction Line Array Attributes.

    Add the Transaction Line Array Attributes

  14. Save and Deploy the template.

ClosedMigrating Document Designer Documents with Transaction Arrays

When migrating Document Designer or Email Designer templates that contain transaction arrays, administrators should ensure that the array set and all array set attributes are also migrated.

For example, the following image shows a migration package containing the Document Designer "Proposal" document, note that the "amortizationSchedule" array set and all of its child attributes are also selected.

Migrate Document Designer files


ClosedHeaders, Footers, and Page Numbers

One of the most popular uses for a Footer is to show page numbers. To add page numbers to a Footer:

  1. If necessary, add a Header & Footer Layout element to the Editor.
  2. Open the Elements pane.
  3. Drag a Text element to the Footer.

    The Text Element editor window appears.

  1. In the Attribute drop-down, choose Page Number under Template Attributes, and click Add.

    Choose Page Number under Template Attributes

    The attribute appears in the Text Element dialog box.

  1. Enter a space, the word “of”, and another space.
  2. Choose Total Page Number under Template Attributes, and click Add.
  3. Make any need changes to the text. For example, you can select the text and center it.

    Text element dialog

  1. Click OK.
The Template Attributes Page Number and Total Page Number can be used in any Text or Heading Elements—they do not have to be placed in a Footer.

Notes

A separator (~) will be displayed between the float attribute value and the unit, when the float attributes have units.

Related Topics

Related Topics Link IconSee Also