CrossReference function

Applies to JungleDocs for SharePoint 2010-2019.
For JungleDocs for Office 365 tutorials, click here.

This article describes the formula syntax and usage of the CrossReference function in JungleDocs.


Description

Creates a cross-reference to a specified bookmark.

Syntax

CrossReference(bookmarkName; [updateOnOpen]; [contentOption]; [preserveFormatting]; [defaultContent])

The CrossReference function syntax has the following arguments:

  • bookmarkName   Required. A string value. Will be formatted to match Word requirements and trimmed to 40 symbols.
  • updateOnOpen   Optional. A boolean value. Automatically updates all fields when a document is opened in Word. Default value is true.
  • contentOption   Optional. A string value. Enter text for "Bookmark text" value or number for "Paragraph number" value. Default value is text.
  • preserveFormatting   Optional. A boolean value. Preserves formatting during updates. Default value is true.
  • defaultContent   Optional. A string value. Content which is displayed if document fields are not updated. Default value is Reference to {bookmarkName}.

Examples

CrossReference("My bookmark 1")

CrossReference("My bookmark 1"; true; "number")

CrossReference("My bookmark 1"; true; "text"; true; "Please update fields")

CrossReference("My bookmark 1"; true; "number"; true; "Please update fields")

Remarks

If a template contains at least one CrossReference function with the UpdateOnOpen value set to true, the following pop-up will be displayed when opening the created document:

Note that clicking "Yes" will update all the fields in the document, regardless of the UpdateOnOpen value(s).

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us