Scripting > mrScriptMetadata User's Guide > mrScriptMetadata reference > Label text insertion
 
Label text insertion
You can use text insertion to set the value of question and category labels when an interview script is run. For example, you might want to include the respondent's answer to a previous question in the text of a subsequent question.
You specify a text insertion by typing it in the text of a question or category label. A label can contain more than one text insertion.
Syntax
{ insertion [ : format_specification ] }
Types of text insertion
Response insertion. This type of insertion is automatically populated with the answer to a previous question or the value of a variable from an interview script's routing section.
Index insertion. This type of insertion is automatically populated with the current index value of a loop. The index value will be a category label or a number depending on the type of loop.
Named insertion. Unlike response and index insertions, this type of insertion is not automatically populated. Instead, you set the value of a named insertion from the routing section of your interview script.
Each of these types is described in more detail below. Custom formatting of text insertions is also described below.
Note A standard text insertion is another type of text insertion that is used only in custom label texts for interview messages, error messages, button labels, and special response labels. See Custom message texts for more information.
See
Response insertions
Index insertions
Named insertions
Formatting text insertions
mrScriptMetadata reference