JSON API - addCrossReference

addCrossReference

PREMIUM TRIAL / ADVANCED

Inserts a cross-reference.

Note

You are reading the JSON API documentation. For the PHP API method please go to addCrossReference.

JSON data

Styles from addText can be used.

Key Description
text Text content.
type The bookmark type. Possible values are 'bookmark' and 'heading'.
modifiers Custom modifiers: \r \h, \n \h....
referenceName The name of the element to be referred.
referenceTo Content to display when the field is updated PAGEREF (default, page number), REF (bookmark text content), ABOVE_BELOW (above/below text).
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.