Group: Forum Members
Posts: 8,
Visits: 25
|
Hi, I'm using a block to present a set of radiobuttons questions randomly across several surveypages. If possible, I would like to control the position of the questions. However, the correct position per item depends on the presentation order. Looking at the position attribute, it seems like this sort of information is available for some elements: http://www.millisecond.com/support/docs/v5/html/language/attributes/position.htmSpecifically: <text sometext> / items = ("ipsum") / position = (trial.mytrial.currenttrialnumber * 5, trial.mytrial.currenttrialnumber * 5) </text> However, I can't figure out what the property I should reference to get question presentation number. Is there a way to do something like that for radiobuttons elements? For my purposes, the info I need is trial number and survey question within current page. Any pointers? Thanks! <block someblock> / trials = [1-2 = somepage] </block>
<surveypage somepage> / questions = [1-2 = noreplace( item01, item02, item03, item04, )] </surveypage>
<radiobuttons item01> / caption = "Item 01 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
<radiobuttons item02> / caption = "Item 02 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
<radiobuttons item03> / caption = "Item 03 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
<radiobuttons item04> / caption = "Item 04 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+xHi, I'm using a block to present a set of radiobuttons questions randomly across several surveypages. If possible, I would like to control the position of the questions. However, the correct position per item depends on the presentation order. Looking at the position attribute, it seems like this sort of information is available for some elements: http://www.millisecond.com/support/docs/v5/html/language/attributes/position.htmSpecifically: <text sometext> / items = ("ipsum") / position = (trial.mytrial.currenttrialnumber * 5, trial.mytrial.currenttrialnumber * 5) </text> However, I can't figure out what the property I should reference to get question presentation number. Is there a way to do something like that for radiobuttons elements? For my purposes, the info I need is trial number and survey question within current page. Any pointers? Thanks! <block someblock> / trials = [1-2 = somepage] </block>
<surveypage somepage> / questions = [1-2 = noreplace( item01, item02, item03, item04, )] </surveypage>
<radiobuttons item01> / caption = "Item 01 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
<radiobuttons item02> / caption = "Item 02 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
<radiobuttons item03> / caption = "Item 03 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
<radiobuttons item04> / caption = "Item 04 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false </radiobuttons>
Using a <list> (or two) for the respective x and y positions should work. I.e something like this: <block someblock> / trials = [1-2 = somepage] </block> <list x> / items = (30%, 30%) / selectionmode = sequence / selectionrate = always </list>
<list y> / items = (20%, 40%) / selectionmode = list.x.currentindex / selectionrate = always </list><surveypage somepage> / questions = [1-2 = noreplace( item01, item02, item03, item04, )] </surveypage> <radiobuttons item01> / caption = "Item 01 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false / position = (list.x.nextvalue, list.y.nextvalue)</radiobuttons> <radiobuttons item02> / caption = "Item 02 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false / position = (list.x.nextvalue, list.y.nextvalue)</radiobuttons> <radiobuttons item03> / caption = "Item 03 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false / position = (list.x.nextvalue, list.y.nextvalue)</radiobuttons> <radiobuttons item04> / caption = "Item 04 text" / options = ("Strongly disagree", " ", " ", " ", " ", " ", "Strongly agree") / optionvalues = ("1", "2", "3", "4", "5", "6", "7") / orientation = horizontalequal / required = false / position = (list.x.nextvalue, list.y.nextvalue)</radiobuttons>
|
Group: Forum Members
Posts: 8,
Visits: 25
|
Thanks! That works perfectly.
|