July 17, 2017
Contract Express® Author Getting Started Manual
8.1.2 Question
Specifies the question text that is displayed on the questionnaire displayed to end users. This can have rich text
formatting using the rich text controls above the text box.
8.1.3 Type
The type of the variable primarily determines how its value is collected on the questionnaire, and secondly how
that value appears in a generated document.
The type of a variable determines the kinds of values that can be entered into the field on the questionnaire and
how that information can be used in your master document. For example, when Contract Express encounters a
date type it will add a field and a calendar popup box on the questionnaire page. When displaying the answer to
this date in the generated document you can choose whether to have it display in short form e.g. 01/01/2008,
long form 1st January 2008 or a custom format.
Escape character and reserved words.
If you include a single quote as part of the variable Name, the Variable Editor will automatically
add a backslash character to escape the quote: \'
Similarly, if the name includes a backslash, the variable editor will prefix this with a further
backslash character \\
If you add fields into the template as you type, you must remember to escape quotes and
backslashes where necessary.
There are a number of reserved words which variable names cannot contain such as AND and
NOT. The full list is as follows:
alt, and, answered, as, attach, attribute, authornote, by, capitals, cell, cloaked, collect,
collectvalues, committed, datatype, deferred, definite, doctitle, document, else, every, exists,
export, expressiontext, false, foreach, format, from, hyperlink, if, ifknownelse, include, is,
isatleast, isatmost, islessthan, ismorethan, isnot, known, knowntrue, label, list, lower, mark,
nonmutualand, nonmutualor, nonrepeated, not, note, now, occurrence, onlyoninput,
onlyonoutput, onlyother, or, other, otherselections, picture, prefix, prescribedselections,
proper, punctuation, ref, reference, relevance, repeat, repeatcontext, repeatcounter, select,
selectionoptions, sensitive, simplify, spanrelevance, style, sure, template, templaterelevance,
textfile, then, to, today, true, unrepeated, upper, using, value, where, with, xor
Additionally, you cannot use the following symbols as the variable name (but they can be
included as part of the variable name if quoted):
+ - * / // , ( ) # ? .