Expand/collapse grouped response options for multiple choice question | XM Community
Skip to main content
Solved

Expand/collapse grouped response options for multiple choice question


Forum|alt.badge.img+4

Hello,

 

I have a multiple choice question with 85 response options organized into ten groups. I’d like to collapse the groups so it’s easier for respondents to navigate the options (this is not a drill-down question). They would be able to expand a group, select any responses, then collapse it again.

 

I’ve experimented with the accordion function in JS, but I don’t know JS well-enough to get it to work. Has anyone tried this and gotten it to work? Or is there another approach? Thanks in advance.

Best answer by TomG

dxconnamnguyen wrote:

@Paul25 - In addition to the mcSubChoices function referred to by @dxconnamnguyen, I’ve also have a function to expand/collapse MC choice groups (no wiki page for it). The functionality is pretty basic. Demo.

View original

2 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • October 6, 2023

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • Answer
  • October 6, 2023
dxconnamnguyen wrote:

@Paul25 - In addition to the mcSubChoices function referred to by @dxconnamnguyen, I’ve also have a function to expand/collapse MC choice groups (no wiki page for it). The functionality is pretty basic. Demo.


Leave a Reply