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

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

  • 18 June 2018
  • 4 replies
  • 82 views

Userlevel 1
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?
icon

Best answer by TomG 18 June 2018, 23:28

View original

4 replies

Userlevel 7
Badge +27
Yes, you would use an event handler function. You'll need to provide more details if you want a more specific answer.
Userlevel 1
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?
Userlevel 7
Badge +27
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.
Userlevel 1
Thanks TomG! I'll give it a try.

Leave a Reply