How can I include a "see more" button in my question, where the respondent can click on the button and display more details about the question?
Solved
"See more" button
Best answer by Nam Nguyen
<style type="text/css">#hidden-paragraph {
display: none;
}
</style>
<p>The short part of the question <span id="hidden-paragraph">The hidden part that will be revealed when you click see more button....................ble bla bla</span></p>
<button id="see-more-button">See more...</button>Add this to Javascript to activate the button
Qualtrics.SurveyEngine.addOnReady(function() {
document.getElementById("see-more-button").addEventListener("click", function() {
var hiddenParagraph = document.getElementById("hidden-paragraph");
if (hiddenParagraph.style.display === "none") {
hiddenParagraph.style.display = "inline";
this.textContent = "See less...";
} else {
hiddenParagraph.style.display = "none";
this.textContent = "See more...";
}
});
});

Hope this helps
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
