FORMAT "LIST_FORMAT"

PlaceholderA marker in an instruction or expression model that indicates where a value must be substituted. This value must be a literal value or a variable. Instruction and expression models help the developer use the correct syntax in a script. Replace With
LIST_FORMAT An example of the conjunction and punctuation desired, for example, a, b, and c or a; b; or c.

The FORMAT "LIST_FORMAT" instructionA command in a script or template that performs a special task, such as inserting a template or asking a dialog at a specific place in the interview. allows you to create a sentence-style listTwo or more answers to one question merged in the document. within a computation. (If you create the REPEAT instruction using a REPEAT fieldA place in the template that denotes where users' answers should be merged, or where a specific instruction should be executed. In a text template, a field is denoted by chevrons. In a form template, a field is denoted by a colored box that is overlaid on the form's static text., you can specify the list format by choosing a style from the Format drop-down list. See Punctuate a Sentence-Style List.)

For example, perhaps you want the items in your list to appear with the final comma preceding the and. Your scriptOne or more instructions and/or expressions that generate a value or execute some kind of procedure. would look like this:

"" REPEAT Education Information

FORMAT "A, B, and C"

RESULT + Degree Designation

END REPEAT

RESULT

Once a userThe customer, client, or person who assembles documents from templates. (See also template developer.) has provided the list of educational degrees in Education Information, the FORMAT instruction ensures that the requisite commas are in place.

FORMAT instructions should be placed immediately after the REPEAT instructions for repeated dialogs, and before other instructions influencing the REPEAT (such as FILTER or ASCEND and DESCEND.