Format Answers in the Document

As you mark up the HotDocs Model, you may want an answer to appear in a special format. For example, you may want to spell out a number (twenty-five vs. 25) or you may want to use the long form of a date (such as 14th day of March, 2007). To do this, you can assign a format property to a variable. When the document is assembled, the answer will be formatted according to the markup.

To format an answer, you first define the format property, followed by an equal sign and the specific format you want to use.

For example, the following marked up date:

[AgreementDate;da;format="dth day of Mn, YYYY"]

would merge the following answer in the document:

6th day of November, 2008

The type of format you assign depends on the type of markup field you're inserting. See the tables below to view the available formats:

Text Formats

Property Name Description Defined As How It Formats the Answer
upper All letters upper case format=upper THIS IS THE ANSWER.
lower All letters lower case format=lower this is the answer.
title First letter of each word uppercase format=title This Is The Answer.
sentence First letter of first word upper case format=sentence This is the answer.

The sentence format capitalizes the first letter of the first word in the answer, regardless of the answer's placement in the paragraph or document.

Number Formats

Property Name Description Defined As How It Formats the Answer
alpha Case-sensitive, spelled out number format=alpha

format=Alpha

format=Alpha

nine

Nine

NINE

ordinal Case-sensitive, spelled out ordinal number format=ordinal

format=Ordinal

format=ORDINAL

ninth

Ninth

NINTH

09 Number including a leading 0 if the user enters one in the answer format=09 04

78

9 Simple numeral format=9 98

7,952

9 1/8 Fraction format="9 1/8" 2 1/4
9,999.00 Monetary amount with cents (even if no cents are entered) format=9,999.00 9,216.00

9,216.92

9.9 Whole numeral with optional decimal places format=9.9 87.1254
9999 Numeral with no thousands separator format=9999 12875
9th Ordinal number format=9th 23rd
Nine Dollars and Twelve cents Spelled out monetary amount format=Nine Dollars and Twelve cents Five Dollars and Thirty-Six Cents
ninth Spelled out ordinal number format=ninth

format=Ninth

format=NINTH

thirteenth

Thirteenth

THIRTEENTH

Date Formats

Property Name Description Defined as How It Formats the Answer
d Numeric day format=d 1
m Numeric month format=m 1
y Numeric year (4 digits) format=y 2008
dd Two-digit numeric day format=dd 01
mm Two-digit numeric month format=mm 01
yy Two-digit numeric year format=yy 08
yyyy Four-digit numeric year format=yyyy 2008
dth Case-sensitive, numeric ordinal day format=dth

format=dTH

1st

1ST

dy Case-sensitive, spelled out day format=dy

format=Dy

format=DY

first

First

FIRST

mn Case-sensitive, spelled out month format=mn

format=Mn

format=MN

january

January

JANUARY