I need to pipe in text of selected answers as a summary in the next question, but I need to exclude one of the options even if it is selected. Is this possible?
Page 1 / 1
Hey
i am sure there must be a solution using custom coding - Javascript but I gave it a try without it.
STEP 1 - Create your desired question multi choice question from where the selected choices will be picked. (example below)

STEP 2 - Create branch logics just after the question block.


STEP 3 - Create a multi select embedded data which will comprise of all the above embedded data except the one you want to exclude.

STEP 4: Create a new summary question in a new block.

END!
Hi,
Here’s a solution with custom javascript.
- Add a hidden span with class “hideInSummary” to the choices you don’t want to display in the summary.

- Pipe in your results as usual in your summary question, but add this custom javascript code.

Qualtrics.SurveyEngine.addOnReady(function () {
document.querySelectorAll('span.hideInSummary').forEach(span => {
const prev = span.previousSibling;
if (prev && prev.nodeType === Node.TEXT_NODE) {
const content = prev.textContent;
if (content.endsWith(', ')) {
prev.textContent = content.replace(/, $/, '');
}
}
span.style.display = 'none';
});
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.