Fields for version tracking

About this task

Adding a $VersionOpt field to a form allows users to create new versions of edited documents on a document-by-document basis.

To create a computed $VersionOpt field

About this task

Use a computed text field if you want each document created from a form to have the same version control option.

Procedure

  1. Create a field named $VersionOpt and define it as a computed text field.

    Computed-for-display and computed-when-composed fields do not work in this situation.

  2. Select Value on the Objects tab of the Info List in the Programmer's pane.
  3. In the Script area enter one of the following values:

    Value

    Type of tracking

    0

    No version tracking

    1

    New versions become responses if users choose File - Save As New Version when they save a document

    2

    New versions automatically become responses when saved

    3

    Prior versions become responses if users choose File - Save As New Version when they save a document

    4

    Prior versions become responses when saved

    5

    New versions become siblings if users choose File - Save As New Version when they save a document

    6

    New versions automatically become siblings when saved

To create a choice list $VersionOpt field

About this task

Use a choice list field if you want users to be able to choose the method of version control each time they create a document.

Procedure

  1. Create a field named $VersionOpt and define it as an editable dialog list field.

    Do not select "Allow multi-values" or "Allow values not in the list."

  2. On the Control tab select "Enter choices (one per line)."
  3. Enter one or more of the following options:
    • Don't track versions | 0
    • Create response if File - Save As New Version is used | 1
    • Create response automatically | 2
    • Promote to main document if File - Save As New Version is used | 3
    • Promote to main document automatically | 4
    • Create additional main document if File - Save As New Version is used | 5
    • Create additional main document automatically | 6