How do you get a number to dynamically change in constant sum answer box? | XM Community
Skip to main content
Solved

How do you get a number to dynamically change in constant sum answer box?


The Qualitrics support team confirmed that there is no built-in way to have a number dynamically change in a constant sum answer box, however, he was told by the support team that is can be done using custom Javascript. Unfortunately, the team is unable to assist with custom coding. Anyone have knowledge of how this is done?

Best answer by TomG

Event handlers are part of JavaScript. Maybe you don't need to do it with code. If you click the Show Total box, Qualtrics will show the total points allocated. If you want to display the unallocated points (100 - total), you would add 'blur' event handler functions to the input fields to update the displayed unallocated points.
View original

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • June 18, 2018
Yes, you would use an event handler function. You'll need to provide more details if you want a more specific answer.

  • Author
  • 4 replies
  • June 18, 2018
Hi TomG. In my survey, I'm asking participants to allocate a total of 100 points to a series of options, assigning more points to the options that are most relevant. I don't want people having to calculate in their heads how many points they've allocated. I want to number to dynamically change as the points are allocated to the relevant options. Do you have more information I could use? The the event handler function part of Qualtrics or Javascript?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • Answer
  • June 18, 2018
Event handlers are part of JavaScript. Maybe you don't need to do it with code. If you click the Show Total box, Qualtrics will show the total points allocated. If you want to display the unallocated points (100 - total), you would add 'blur' event handler functions to the input fields to update the displayed unallocated points.

  • Author
  • 4 replies
  • June 18, 2018
Thanks TomG! I'll give it a try.

Leave a Reply