Millisecond Forums

Need help with adding html in instructions and adding a rank order screen for 4 items with forced choice

https://forums.millisecond.com/Topic7520.aspx

By GeeP - 2/27/2012

I would really appreciate help with this:



1. How to add an instruction page with pictures (html)


2. How to add a rank ordering system under 4 pictures, in which each picture needs to be rank ordered between 1-4 and Ps are not allowed to choose one rank for two people.


Thank you very very much!

By Dave - 2/27/2012

1. How to add an instruction page with pictures (html)


Create HTML files with the desired layout, specify the files in <htmlpage> elements, display the <htmlpage> elements via /preinstructions and /postinstructions. See the 'Tower of London' script available at the Task Library if you need an example.


2. How to add a rank ordering system under 4 pictures, in which each picture needs to be rank ordered between 1-4 and Ps are not allowed to choose one rank for two people.


There is no easy way to do this. You need use e.g. 4 <dropdown> elements on a <surveypage> and check for rank matches via conditional logic.


Regards,


~Dave

By GeeP - 2/27/2012

Thank you very much Dave!


One quick question-Do you know any other study script where a rank order has been used, that I may refer?


Thanks again! :)

By Dave - 2/27/2012

Do you know any other study script where a rank order has been used, that I may refer?


No, but here's a basic demo:


<values>
/ rankstring = ""
/ validranking = false
</values>

<block myblock>
/ trials = [1=mypage]
</block>

<surveypage mypage>
/ questions = [1=d01; 2=d02; 3=d03; 4=d04]
/ ontrialbegin = [values.rankstring=""]
/ ontrialend = [values.rankstring=concat(values.rankstring,dropdown.d01.selectedcaption)]
/ ontrialend = [values.rankstring=concat(values.rankstring,dropdown.d02.selectedcaption)]
/ ontrialend = [values.rankstring=concat(values.rankstring,dropdown.d03.selectedcaption)]
/ ontrialend = [values.rankstring=concat(values.rankstring,dropdown.d04.selectedcaption)]
/ ontrialend = [if (
    contains(values.rankstring,"1")==true &&
    contains(values.rankstring,"2")==true &&
    contains(values.rankstring,"3")==true &&
    contains(values.rankstring,"4")==true
    ) values.validranking = true else values.validranking = false]
/ branch = [if ( values.validranking == false) surveypage.mypage]
</surveypage>

<dropdown d01>
/ options = ("1", "2", "3", "4")
</dropdown>

<dropdown d02>
/ options = ("1", "2", "3", "4")
</dropdown>

<dropdown d03>
/ options = ("1", "2", "3", "4")
</dropdown>

<dropdown d04>
/ options = ("1", "2", "3", "4")
</dropdown>


Regards,


~Dave

By GeeP - 2/28/2012

Thank you again! :)