Example 2: Placeholder {sequence:PADDING:PREFIX:SUFFIX}

In this example, we use the {sequence:PADDING:PREFIX:SUFFIX} placeholder to apply a counter across documents created from the same template.

About this task

The subject of all documents created from the same template should contain a counter to indicate the sequence in which the documents were created.

Procedure

To configure the template:
  1. Add a Comment element to a template.
  2. To the Comment element, add a Subject subelement.
  3. In the Initial value text box of the Subject element, complete the following steps:
    1. Add the {sequence:PADDING:PREFIX:SUFFIX} placeholder.
    2. Replace PADDING with 5.
    3. Replace PREFIX with Assay-.
    4. Remove SUFFIX. In this example, we do not use a suffix.
      Result: Your initial value entry should now look like this:
      {sequence:5:Assay-:}
  4. Save the template and create two documents from the template.

Result

In documents created from this template, the subject is consecutively numbered according to the order in which the documents are created.