Hello,
I have a pick, group, and rank question where there are a lot of choices, so I added some custom code to increase the length of the box that you drag the options into. On mobile you couldn’t even see the box if you scrolled down to the end of the list. It would be better if I could customize the length of the box by whether a respondent was on a desktop vs. a mobile device. Is there a way to do this with the JS code rather than creating two versions of the question and applying display logic based on whether they are on a mobile device or not?
Qualtrics.SurveyEngine.addOnReady(function () {
qid = this.questionId;
groups = document.querySelectorAll("oid^='" + qid + "group']");
groups.forEach((box) => {
box.style.height = "950px";
});