Hi,
I am currently trying to create a "Check all that apply" question that will be used by many researchers. It currently looks like this.
You'll notice that there are weird spaces between each of the options. That's the issue we're trying to troubleshoot. We don't want that space to be there.
The space appears between the options because this is a series of "selectOne" questions with "" as the stem. We set it up that way because that was the only way we could think to get a bunch of dummy-coded variables like:
multi_asian: 1
multi_black: 1
multi_hispanic: 1
multi_white: 0
multi_middleeastern: 0
...and so on.
Using the default selectMulti option would solve the visual presentation problem. However a multiracial person who is White, Asian, and Black would show up as a string variable that looks like ["Asian", "Black", "Hispanic"] in the recorded data. That would require some intermediate-level data-wrangling to parse the string for the information that a researcher needs. We anticipate that novice or early PhD students would face special trouble since they are typically not experienced with cleaning string data.
Is there a way to present this series of dummy-coded questions without space in between? Thanks!
For reference, here's our current code for one of those dummy-coded questions:
API.addQuestionsSet('singleChoice',{
inherit: 'basicQ',
type: 'selectOne',
help: '<%= pagesMeta.number < 10 %>'
});
API.addQuestionsSet('multi_pacificislander',{
inherit: 'singleChoice',
booleanValues: true,
name: 'multi_pacificislander',
stem:"",
answers: [
{text:'Native Hawaiian or Other Pacific Islander'}
]
});
Best,
Calvin