add_descriptive_text_question
Add a descriptive text question to a Qualtrics survey block, using HTML content with optional JavaScript for instructions or processing screens.
Instructions
Simplified helper to create a descriptive text (DB/TB) question — commonly used for instructions, processing screens, or HTML content with optional JavaScript.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surveyId": "<surveyId>",
"blockId": "<blockId>",
"htmlContent": "<htmlContent>"
},
"name": "add_descriptive_text_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockId | Yes | The block ID to add the question to | |
| surveyId | Yes | The Qualtrics survey ID | |
| questionJS | No | JavaScript to attach to this question (QuestionJS). IMPORTANT: Avoid literal `${` in JS strings — Qualtrics interprets it as piped text and corrupts the code. Use `\x24{` or `String.fromCharCode(36)+'{'` instead. | |
| htmlContent | Yes | The HTML content to display |