Adding a custom constant sum box to an image | XM Community
Skip to main content
Question

Adding a custom constant sum box to an image

  • July 16, 2020
  • 2 replies
  • 47 views

Hi,
My collaborators and I are trying to create a question that looks like this:
Screen Shot 2020-07-15 at 6.19.13 PM.pngOur code works for the most part, but we can't seem to get the "total" box to display the sum of all other 5 boxes.
Here is the code:

































Does anyone know what is the problem? The code runs fine in a HTML webpage.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • July 16, 2020

Try putting your findTotal() function (without the script tag) inside the Qualtrics.SurveyEngine.addOnload() function.


Forum|alt.badge.img
  • May 10, 2023

I would like to use a similar question, can you share the code you used to achieve this outcome?