Hello Qualtrics Community,
I am working on a survey with two matrix tables and need assistance with JavaScript to perform certain calculations. Please note that I do not have any knowledge of HTML. The reason I am using JavaScript is that I need the calculation to happen on the same page where the respondent is making their selections. This is necessary because we need to show the calculated value on the same page so that respondents can amend their answers if they feel the need to adjust.
Here’s the breakdown:
- Matrix Table 1: Contains 4 statements, each with 3 options. Each option has an associated recode value.
- Matrix Table 2: Contains 2 statements, each with 2 options. Each option also has a recode value.
I need to:
- Sum the recode values of all selected options for each statement in the first matrix table.
- Multiply the recode values of the two statements in the second matrix table.
- Multiply the sum from the first matrix table by the result from the second matrix table.
I would appreciate any guidance, code snippets, or detailed instructions on how to achieve this using JavaScript in Qualtrics.