How to add next/back navigation buttons to question ?


Author
Message
kulajw
kulajw
Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)
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>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search