Unfold new statement upon click on another statement in multiple choice question | XM Community
Skip to main content
Question

Unfold new statement upon click on another statement in multiple choice question


Forum|alt.badge.img+1

Is there a way to unfold statements within the same multiple choice question when another statement is selected?
 

I’ve tried to use display logic on the new statements but it does not work.

 

4 replies

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

@Ablenya Display logic doesn’t work within the page. A drilldown question might be the one you’re looking for.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • October 2, 2023

@Ablenya,

It can be done with JavaScript.  If you are interested I have a function, mcSubChoices, that does it.


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • October 2, 2023

@TomG 
Thanks, the mcSubchoices seem to be the right answer for it!
I am, however, completely new to Javascript. May I ask you to give me an example on how to create the parent choice and subchoices within the function?
 


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

@TomG 
Thanks, the mcSubchoices seem to be the right answer for it!
I am, however, completely new to Javascript. May I ask you to give me an example on how to create the parent choice and subchoices within the function?
 

If you are interested in using mcSubChoices you need to contact by by private message.


Leave a Reply