HotDocs Models: first( text, num )

Placeholder Replace With
text A text value, such as a Text variable, from which the specified number of characters will be returned. This can be a fixed text value, inside quotation marks.
num A number value, such as a Number variable or a fixed number value. It specifies the number of characters you want returned.  

Using this expression, you can return any number of characters starting with the first character in an answer value.

The following computation looks at the client’s first, middle, and last names and returns only the first character from each of these variables. When merged together, these characters create the client’s initials:

first( ClientFirstName, 1 ) + first( ClientMiddleName, 1 ) + first( ClientLastName, 1 )

In the following example, the first four characters of a client’s last name are merged with a case number to create a file number.

first( ClientLastName, 4 ) + CaseNumber