I have a matrix table where people can choose their support among some candidates.
Then, I want to pick the candidate with maximum support, to catch a video for people to watch.
I have chosen to operationalize this by using JavaScript along with capturing Answers and Choices through this:
![](https://uploads-us-west-2.insided.com/qualtrics-us/attachment/2fa5e7ce-c6d9-4510-9610-eca8841544f1.png)
When happens is that, when someone chooses the same level of support for two candidates, Qualtrics omits the duplicate. My Javascript begins with
var supportAnswers = "${e://Field/SupportAnswers}";
var supportChoices = "${e://Field/SupportChoices}";
and then operationalizes a bunch of stuff with a CSV file.
Since the number of candidates varies with different cities, getting the whole vector of SupportAnswers was really good in making things similar across different “Branch Ifs”.
Any ideas?