Hello!
I have a matrix table of the type “constant sum”, where each row has its own total. I am looking for JavaScript code that does the following:
- Any totals that equal 100 are shown in black font colour (if the total does not equal 100, I would like it to show in red font colour)
- If any total is greater than 100, disable the next button (or, alternatively, show an immediate custom error message next to the corresponding total box). I do not want an error message that shows after the respondent has clicked on the next button.
I have managed to get this to work for a “constant sum” question, but not for a matrix table of type “constant sum”.
I would be very grateful for any help! Thank you in advance!
