New parameters

For all mandatory parameters defined in a Master Template, a value must be provided in each Document Template that is based on the Master Template. If the list of parameters must be extended, this also requires an update on all existing Document Templates.

The EXTENSION keyword allows the Master Template to add new parameters without updating existing Document Templates. If a Document Template does not define the parameter, it uses the default value provided by the Master Template.

If no default value is provided, the value will be empty. For the TEXTBLOCK, FORM, and WIZARD parameters that allow no default to be provided, you can use this to check whether a value was provided by the Document Template.

PARAMETER TYPE Name_of_parameter EXTENSION

The EXTENSION keyword implies that the question also has the OPTIONAL keyword.

Examples are provided here.

PARAMETER TEXT Sender
    DESCRIPTION “The name of sender of this document”
    EXTENSION DEFAULT “J. Doe”

PARAMETER FORM Questions 
DESCRIPTION “Some extra questions to retrieve data for this document”
EXTENSION
IF _Template.Questions <> "" THEN
    FORM VAR _Template.Questions
    DATA _data
FI