Setting default choice for SBS multiple choice using embedded data | Experience Community
Skip to main content
Question

Setting default choice for SBS multiple choice using embedded data

  • Nov 13, 2026 5:14 PM UTC
  • 0 replies
  • 9 views

Forum|alt.badge.img+8

Hi, see image of my question below. I have a side by side question. I have embedded data that has what the default answers should be to each. With text entry fields, I can use embedded data to feed in the text. I cannot get this to work with the dropdown column.

I know in the javascript, I can use if/then to check the embedded data field and set the dropdown to the value appropriately (1, 2, 3, 4). Before that, my first step is just setting the dropdown to an option.

Based on Mozilla’s docs and looking at the first row, the web developer inspection shows that this dropdown is id="sbs-dropdown-QID2-1-2". What I have is in the OnLoad,    document.getElementById('sbs-dropdown-QID2-1-2').value = '2';

This doesn’t work but is my closest guess - does anyone have an idea? We’re using the New Survey Taking Experience, which I know messes with the JavaScript somehow. Thanks!