Need help creating a selectable matrix of values | XM Community
Skip to main content
Solved

Need help creating a selectable matrix of values

  • February 16, 2021
  • 4 replies
  • 9 views

I am trying to create a matrix of values where the respondent selects the two that add up to 100 (like this...)
image.pngCan I do this with an already existing question type or does this needed special code?

Best answer by ahmedA

Question: Multiple Choice --> Multiple Answer --> Columns.
You can add it either under the look and feel section or if you only want it on certain pages/question, you can add it to the question HTML.

4 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • February 16, 2021

You can add this CSS to your question HTML to get a look close to it:
.Skin .QuestionBody table.ChoiceStructure {
width: fit-content !important;
}
.Skin .QuestionBody table.ChoiceStructure td:not(.ControlContainer){
border: 1px solid black;
border-collapse: collapse;
}
image.png


  • Author
  • February 16, 2021

ahmedA Thanks! I am super new to custom code. Which question type do I start with? I assume I add this under Look and Feel?


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • February 16, 2021

Question: Multiple Choice --> Multiple Answer --> Columns.
You can add it either under the look and feel section or if you only want it on certain pages/question, you can add it to the question HTML.


  • Author
  • February 16, 2021

Thank you so much!