Is it possible to create a dynamic Overall Total in a Constant Sum Matrix question (js/ html?) | XM Community
Skip to main content
Solved

Is it possible to create a dynamic Overall Total in a Constant Sum Matrix question (js/ html?)

  • January 25, 2022
  • 4 replies
  • 99 views

MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Level 5 ●●●●●

Is it possible to create a dynamic Overall Total within a Constant Sum question similar to the image below - either as part of the table, or as a separate figure?
Is it possible with JavaScript only - or do I need to use html too?
image.png

Best answer by TomG

You can only do it with JavaScript. You'll need some html, but you can add that using JS.

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • January 25, 2022

You can only do it with JavaScript. You'll need some html, but you can add that using JS.


MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Author
  • Level 5 ●●●●●
  • January 25, 2022


https://community.qualtrics.com/XMcommunity/discussion/comment/43202#Comment_43202Thanks Tom - I thought that might be the case.... would it be a lot of work/ code? Is it something that you already have to hand / or easy for me to put in place?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • January 25, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/43205#Comment_43205I haven't done this. Probably a dozen or so lines of code. How much work depends on JS knowledge/skill.


MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Author
  • Level 5 ●●●●●
  • January 25, 2022


https://community.qualtrics.com/XMcommunity/discussion/comment/43209#Comment_43209I think I'll struggle - I've been looking at other posts to see if I could find anything similar. I think the closest I found was this post (How to display score on survey page that dynamically updates? — Qualtrics Community), but that post was regarding Likert scales...
I wasn't 100% sure what the final solution was on that post, but is that the approach? I assume I'd need to change the event? and how the scores are picked up?