Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active October 23, 2022 17:03
Show Gist options
  • Save marketinview/00c6b7790bec6c8178bf to your computer and use it in GitHub Desktop.
Save marketinview/00c6b7790bec6c8178bf to your computer and use it in GitHub Desktop.
Qualtrics: Hide Question Text. On occasion, it is useful to hide a question's text and just display the choices/answers. #qualtrics #js #jq #hide #questiontext
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .QuestionText:first").parent().hide();
});
@marketinview
Copy link
Author

marketinview commented Mar 2, 2016

The parent() hides the header that contains the question text. It also removes the blank space at the top of the question. If you want the blank space to remain, remove the parent() from the line of code.

@marketinview
Copy link
Author

marketinview commented Nov 14, 2017

See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment