survey question margins


Author
Message
brendan
brendan
Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)
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.htm

Specifically:

<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>



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
brendan - Monday, July 17, 2017
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.htm

Specifically:

<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>

brendan
brendan
Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)Partner Member (810 reputation)
Group: Forum Members
Posts: 8, Visits: 25
Thanks! That works perfectly.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search