Accordion Behaviour in Matrix Question | XM Community
Skip to main content

Hi There,
I have created a matrix question, pulled the width over to the right so the question displays as an accordion:
Capture1.PNGDefault behaviour is that when a Choice is selected from the "Current" group, the accordion collapses, and the "Future" group accordion expands - see next image.
Capture2.PNGWhen a Choice is selected from the "Future" group, the accordion does not collapse - see next image
Capture3.PNGMy question is:
Is there a way to have the "Future" accordion behave the same as the "Current" accordion - i.e. collapse on select?
Thanks in advance.

Yes, but you need to write JavaScript to do it (which is quite tricky). You might be interested in this forceAccordion function.


Hi TomG,

Thanks for your help! This looks like it does what I need.


Yes, but you need to write JavaScript to do it (which is quite tricky). You might be interested in this forceAccordion function.

Hey @TomG — I noticed in the link you shared it says the function is available for a fee and to reach out to you here. How do I purchase this function? Thanks


Caitlin,

The forceAccordion function is $59 USD. Payment can be made via PayPal.  If you are still interested send me your billing info (name and email required), and I’ll send you an invoice. Once paid, I’ll email a .qsf that includes the function and an example question.

Regards,

Tom


Leave a Reply