Side by Side dropdown values inaccessible via JavaScript in New Survey Taking Experience | Experience Community
Skip to main content
Question

Side by Side dropdown values inaccessible via JavaScript in New Survey Taking Experience

  • June 24, 2026
  • 0 replies
  • 0 views

Hi all,

 

I am trying to use JavaScript to read the selected values from a manually built Side by Side question with three dropdown columns (Month, Day, Year) in order to calculate a decimal-year age and write it to embedded data fields using setJSEmbeddedData.

 

I have confirmed the following are all working correctly:

 

• JavaScript is executing

• addOnload and addOnReady are both firing

• Qualtrics.SurveyEngine.setJSEmbeddedData is writing to embedded data correctly

• The Survey Flow has the three fields declared with the _js prefix

• The Gratitude block is in place so the DOB question is not on the final page

 

The problem is that I cannot read the dropdown values from the Side by Side question. I have tried:

• document.getElementsByName(‘QR~’+qid+’#1~1’)[0] — returns undefined

• document.querySelectorAll(‘select’) — returns zero elements

• document.querySelectorAll(’#’+qid+’ select’) — returns zero elements

• document.getElementById(qid) — returns null

• document.body.innerHTML — shows question text is present but no select elements visible in the DOM when addOnReady fires

 

My question is: what is the correct method for reading the selected values from a Side by Side dropdown question under the New Survey Taking Experience?

 

Any help would be greatly appreciated. Thank you.