Developer Documentation Library > 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. See Response insertions.
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. See Index insertions.
Named insertion. 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. See Named insertions.
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.
See
Formatting text insertions
mrScriptMetadata reference