Hi,
I'm trying to do a math operation where the survey respondent starts with $x. A choice that the survey respondent makes should deduct $y from this initial amount (for simplicity, let x and y be 1). I am trying to show the remaining amount dynamically using Qualtrics Math operations or Javascript. However, during testing, the results of the math operations are showing up as blank.
How can I fix this? Would really appreciate all the help, thanks!
This is my code in Javascript:
This is the logic I'm using in the question text for the math operation to display:
This is the blank result I get during testing:
Solved
Math Results not showing up
Best answer by Lokendra
Thanks to everyone who left a comment here to help!
I believe the issue was with me re-using embedded data objects based on if statements. I re-did the survey again using a separate embedded data object for each individual calculation and it worked.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


