kulajw
|
|
Group: Forum Members
Posts: 51,
Visits: 256
|
Hello
I would like to create set of openended question using <openended> element, but participants should have options to leave current question as well option to came back to previously displayed questions.
How can I add next (show next item) and back (show previous item) button when using <openended> ?
I have the idea to add text stimuli 'next' and 'back' to openended element and then click on this stimuli will be associated with moving back or next.
I try, but I cannot even click on created 'next' and 'back' stimuli, it seems like opeended is blocking other responses than in texstbox ;/
Do you have any idea how to manage this?
Pleease find attached sample of my code
<values> /max=4 /no=0 </values>
<text Next_page> /items = ("next →") / fontstyle = ("Calibri", 4%) / position = (90,90) </text>
<text Back_page> /items = ("← back") / fontstyle = ("Calibri", 4%) / position = (10,90) </text>
<text stimuli> / items = stimuli_set / position = (50,50) /select =sequence </text>
<item stimuli_set> /1="stimuli_1" /1="stimuli_2" /1="stimuli_3" /1="stimuli_4" </item>
<openended show_stimuli> /ontrialbegin = [ values.no = values.no + 1 ] / stimulustimes = [0=next_page, back_page, stimuli] / timeout = 10000
/ timeout = 50000
/position = (50,95)
/ inputdevice = mouse / showmousecursor = true
/validresponse = (next_page, back_page) / validresponse = (anyresponse) /buttonlabel = "Save" / size = (5%,5%) / responsefontstyle = ("Caribli", 5%, true)
/ branch = [ if (values.max>values.no) openended.show_stimuli ]
</openended>
<block > / trials = [1=show_stimuli] </block>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+xHello I would like to create set of openended question using <openended> element, but participants should have options to leave current question as well option to came back to previously displayed questions. How can I add next (show next item) and back (show previous item) button when using <openended> ? I have the idea to add text stimuli 'next' and 'back' to openended element and then click on this stimuli will be associated with moving back or next. I try, but I cannot even click on created 'next' and 'back' stimuli, it seems like opeended is blocking other responses than in texstbox ;/ Do you have any idea how to manage this? Pleease find attached sample of my code <values> /max=4 /no=0 </values> <text Next_page> /items = ("next →") / fontstyle = ("Calibri", 4%) / position = (90,90) </text> <text Back_page> /items = ("← back") / fontstyle = ("Calibri", 4%) / position = (10,90) </text> <text stimuli> / items = stimuli_set / position = (50,50) /select =sequence </text> <item stimuli_set> /1="stimuli_1" /1="stimuli_2" /1="stimuli_3" /1="stimuli_4" </item> <openended show_stimuli> /ontrialbegin = [ values.no = values.no + 1 ] / stimulustimes = [0=next_page, back_page, stimuli] / timeout = 10000 / timeout = 50000 /position = (50,95) / inputdevice = mouse / showmousecursor = true /validresponse = (next_page, back_page) / validresponse = (anyresponse) /buttonlabel = "Save" / size = (5%,5%) / responsefontstyle = ("Caribli", 5%, true) / branch = [ if (values.max>values.no) openended.show_stimuli ] </openended> <block > / trials = [1=show_stimuli] </block> This is not possible with <openended> elements. You would instead have to use <surveypage>s with <textbox> elements and run those via a <survey> (to get back and forth navigation): <surveypage show_stimuli1> / caption = "stimuli_1" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli2> / caption = "stimuli_2" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli3> / caption = "stimuli_3" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli4> / caption = "stimuli_4" / questions = [1=mytextbox] </surveypage> <textbox mytextbox> / textboxsize = (15%,15%) / validresponse = (anyresponse) </textbox> <survey mysurvey> / pages = [ 1=show_stimuli1; 2=show_stimuli2; 3=show_stimuli3; 4=show_stimuli4; ] / showpagenumbers = false / showquestionnumbers = false / nextlabel = "next→" / backlabel = "←back" / finishlabel = "END" </survey>
|
|
|
kulajw
|
|
Group: Forum Members
Posts: 51,
Visits: 256
|
Thank you for this example !
Best
|
|
|
kulajw
|
|
Group: Forum Members
Posts: 51,
Visits: 256
|
+x+xHello I would like to create set of openended question using <openended> element, but participants should have options to leave current question as well option to came back to previously displayed questions. How can I add next (show next item) and back (show previous item) button when using <openended> ? I have the idea to add text stimuli 'next' and 'back' to openended element and then click on this stimuli will be associated with moving back or next. I try, but I cannot even click on created 'next' and 'back' stimuli, it seems like opeended is blocking other responses than in texstbox ;/ Do you have any idea how to manage this? Pleease find attached sample of my code <values> /max=4 /no=0 </values> <text Next_page> /items = ("next →") / fontstyle = ("Calibri", 4%) / position = (90,90) </text> <text Back_page> /items = ("← back") / fontstyle = ("Calibri", 4%) / position = (10,90) </text> <text stimuli> / items = stimuli_set / position = (50,50) /select =sequence </text> <item stimuli_set> /1="stimuli_1" /1="stimuli_2" /1="stimuli_3" /1="stimuli_4" </item> <openended show_stimuli> /ontrialbegin = [ values.no = values.no + 1 ] / stimulustimes = [0=next_page, back_page, stimuli] / timeout = 10000 / timeout = 50000 /position = (50,95) / inputdevice = mouse / showmousecursor = true /validresponse = (next_page, back_page) / validresponse = (anyresponse) /buttonlabel = "Save" / size = (5%,5%) / responsefontstyle = ("Caribli", 5%, true) / branch = [ if (values.max>values.no) openended.show_stimuli ] </openended> <block > / trials = [1=show_stimuli] </block> This is not possible with <openended> elements. You would instead have to use <surveypage>s with <textbox> elements and run those via a <survey> (to get back and forth navigation): <surveypage show_stimuli1> / caption = "stimuli_1" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli2> / caption = "stimuli_2" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli3> / caption = "stimuli_3" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli4> / caption = "stimuli_4" / questions = [1=mytextbox] </surveypage> <textbox mytextbox> / textboxsize = (15%,15%) / validresponse = (anyresponse) </textbox> <survey mysurvey> / pages = [ 1=show_stimuli1; 2=show_stimuli2; 3=show_stimuli3; 4=show_stimuli4; ] / showpagenumbers = false / showquestionnumbers = false / nextlabel = "next→" / backlabel = "←back" / finishlabel = "END" </survey> I have one additional question. I would like to add some graphical image to each question. I know that I can use a <image> element to present picture on a survey page. I have created set of image under <item> element e.g. <item pictures> /1="item_1.png" /2="item_3.png" /3="item_5.png" ... </item> an then I have tryed to presentat picture on a surveypage using <image> <image picture> / items =lista_obrazkow / position = (50,50) </image> <surveypage show_stimuli1> / questions = [1=mytextbox,obrazek] </surveypage> but each time I run survey page it presented random picture - I need a sequence from 1 to 3 etc. It seems that there is no /select atribute in image element to set item selection mode. How can I determine order of image presentation on survey page? Should I use separated <image> element for each picture ?
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+x+x+xHello I would like to create set of openended question using <openended> element, but participants should have options to leave current question as well option to came back to previously displayed questions. How can I add next (show next item) and back (show previous item) button when using <openended> ? I have the idea to add text stimuli 'next' and 'back' to openended element and then click on this stimuli will be associated with moving back or next. I try, but I cannot even click on created 'next' and 'back' stimuli, it seems like opeended is blocking other responses than in texstbox ;/ Do you have any idea how to manage this? Pleease find attached sample of my code <values> /max=4 /no=0 </values> <text Next_page> /items = ("next →") / fontstyle = ("Calibri", 4%) / position = (90,90) </text> <text Back_page> /items = ("← back") / fontstyle = ("Calibri", 4%) / position = (10,90) </text> <text stimuli> / items = stimuli_set / position = (50,50) /select =sequence </text> <item stimuli_set> /1="stimuli_1" /1="stimuli_2" /1="stimuli_3" /1="stimuli_4" </item> <openended show_stimuli> /ontrialbegin = [ values.no = values.no + 1 ] / stimulustimes = [0=next_page, back_page, stimuli] / timeout = 10000 / timeout = 50000 /position = (50,95) / inputdevice = mouse / showmousecursor = true /validresponse = (next_page, back_page) / validresponse = (anyresponse) /buttonlabel = "Save" / size = (5%,5%) / responsefontstyle = ("Caribli", 5%, true) / branch = [ if (values.max>values.no) openended.show_stimuli ] </openended> <block > / trials = [1=show_stimuli] </block> This is not possible with <openended> elements. You would instead have to use <surveypage>s with <textbox> elements and run those via a <survey> (to get back and forth navigation): <surveypage show_stimuli1> / caption = "stimuli_1" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli2> / caption = "stimuli_2" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli3> / caption = "stimuli_3" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli4> / caption = "stimuli_4" / questions = [1=mytextbox] </surveypage> <textbox mytextbox> / textboxsize = (15%,15%) / validresponse = (anyresponse) </textbox> <survey mysurvey> / pages = [ 1=show_stimuli1; 2=show_stimuli2; 3=show_stimuli3; 4=show_stimuli4; ] / showpagenumbers = false / showquestionnumbers = false / nextlabel = "next→" / backlabel = "←back" / finishlabel = "END" </survey> I have one additional question. I would like to add some graphical image to each question. I know that I can use a <image> element to present picture on a survey page. I have created set of image under <item> element e.g. <item pictures> /1="item_1.png" /2="item_3.png" /3="item_5.png" ... </item> an then I have tryed to presentat picture on a surveypage using <image> <image picture> / items =lista_obrazkow / position = (50,50) </image> <surveypage show_stimuli1> / questions = [1=mytextbox,obrazek] </surveypage> but each time I run survey page it presented random picture - I need a sequence from 1 to 3 etc. It seems that there is no /select atribute in image element to set item selection mode. How can I determine order of image presentation on survey page? Should I use separated <image> element for each picture ? > Should I use separated <image> element for each picture ? That would be the most straightforward solution, especially if only relatively few images are involved. Other approaches are possible, but are considerably more involved.
|
|
|
kulajw
|
|
Group: Forum Members
Posts: 51,
Visits: 256
|
+x+x+x+xHello I would like to create set of openended question using <openended> element, but participants should have options to leave current question as well option to came back to previously displayed questions. How can I add next (show next item) and back (show previous item) button when using <openended> ? I have the idea to add text stimuli 'next' and 'back' to openended element and then click on this stimuli will be associated with moving back or next. I try, but I cannot even click on created 'next' and 'back' stimuli, it seems like opeended is blocking other responses than in texstbox ;/ Do you have any idea how to manage this? Pleease find attached sample of my code <values> /max=4 /no=0 </values> <text Next_page> /items = ("next →") / fontstyle = ("Calibri", 4%) / position = (90,90) </text> <text Back_page> /items = ("← back") / fontstyle = ("Calibri", 4%) / position = (10,90) </text> <text stimuli> / items = stimuli_set / position = (50,50) /select =sequence </text> <item stimuli_set> /1="stimuli_1" /1="stimuli_2" /1="stimuli_3" /1="stimuli_4" </item> <openended show_stimuli> /ontrialbegin = [ values.no = values.no + 1 ] / stimulustimes = [0=next_page, back_page, stimuli] / timeout = 10000 / timeout = 50000 /position = (50,95) / inputdevice = mouse / showmousecursor = true /validresponse = (next_page, back_page) / validresponse = (anyresponse) /buttonlabel = "Save" / size = (5%,5%) / responsefontstyle = ("Caribli", 5%, true) / branch = [ if (values.max>values.no) openended.show_stimuli ] </openended> <block > / trials = [1=show_stimuli] </block> This is not possible with <openended> elements. You would instead have to use <surveypage>s with <textbox> elements and run those via a <survey> (to get back and forth navigation): <surveypage show_stimuli1> / caption = "stimuli_1" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli2> / caption = "stimuli_2" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli3> / caption = "stimuli_3" / questions = [1=mytextbox] </surveypage> <surveypage show_stimuli4> / caption = "stimuli_4" / questions = [1=mytextbox] </surveypage> <textbox mytextbox> / textboxsize = (15%,15%) / validresponse = (anyresponse) </textbox> <survey mysurvey> / pages = [ 1=show_stimuli1; 2=show_stimuli2; 3=show_stimuli3; 4=show_stimuli4; ] / showpagenumbers = false / showquestionnumbers = false / nextlabel = "next→" / backlabel = "←back" / finishlabel = "END" </survey> I have one additional question. I would like to add some graphical image to each question. I know that I can use a <image> element to present picture on a survey page. I have created set of image under <item> element e.g. <item pictures> /1="item_1.png" /2="item_3.png" /3="item_5.png" ... </item> an then I have tryed to presentat picture on a surveypage using <image> <image picture> / items =lista_obrazkow / position = (50,50) </image> <surveypage show_stimuli1> / questions = [1=mytextbox,obrazek] </surveypage> but each time I run survey page it presented random picture - I need a sequence from 1 to 3 etc. It seems that there is no /select atribute in image element to set item selection mode. How can I determine order of image presentation on survey page? Should I use separated <image> element for each picture ? > Should I use separated <image> element for each picture ? That would be the most straightforward solution, especially if only relatively few images are involved. Other approaches are possible, but are considerably more involved. Thank you ! I have about 20 pictures so separated <images> schould works for me. best
|
|
|