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.
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 |