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


Author
Message
GeeP
GeeP
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 81, Visits: 118

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!


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: 12K, Visits: 98K

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


GeeP
GeeP
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 81, Visits: 118

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! :)


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: 12K, Visits: 98K

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


GeeP
GeeP
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 81, Visits: 118

Thank you again! :)


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search