Developer Documentation Library > Scripting > mrScriptMetadata User’s Guide > mrScriptMetadata reference > Label text insertion > Named insertions
 
Named insertions
Named insertions act as placeholders in the label into which text can be inserted from the routing section of the interview script. For example, the label of the following categorical question contains a named insertion called fooditem:
Q30 "Do you like {fooditem}?" categorical [1..1] {Yes, No};
To insert some text into fooditem, include the following statement in the routing section of your interview script before you ask the question:
Q30.Label.Inserts["fooditem"] = "vegetables"
An alternative method for simple questions is to specify the text as a parameter when you ask the question:
Q30.Ask("vegetables")
When question Q30 is presented to the respondent, the question text will be “Do you like vegetables?”.
For more information about writing the routing section of an interview script, see What is an interview script?.
See
Label text insertion