required answers


Author
Message
la_1985
la_1985
Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)Associate Member (242 reputation)
Group: Forum Members
Posts: 16, Visits: 102
Hi, 

I need some advice regarding my script using Inquisit 6. I have a list of words to which a participant will answer 3 related questions. The first two questions are in the format of slider elements and the third question is in the format of a checkbox. These elements are called in a surveypage, which acts as a trial within a block element. Then, the experiment is ran using these blocks. I have two concerns related to my script and I would very much appreciate your help. 

1) I would like the response to each question/slider (questions 1 &2) to be required. As such I have used the /required=true option in the slider element. However, this only works for the first trial in the block element and not for the 2 consecutive trials. I want to be able to code it such that each question of each trial is required.

2) My third question is really a checkbox with the caption "I don't know this word" in case the participant is not familiar with the word presented. I have coded this element as /required=false. However, i would like to code it such that if it is checked, question 1 and question 2 are not required to be answered.

Here is my script, any help with this would be greatly appreciated,

Thanks,
Liz


<surveypage trials>
/ stimulusframes = [1=noreplacenorepeat(words)]
/ questions = [
    1 = slider.q1;
    2 = slider.q2;
    3 = checkboxes.unknown
]
/ showquestionnumbers = false
/ showbackbutton = false
/ itemspacing=20%
/ navigationbuttonfontstyle = ("Arial", 2%, false, false, false, false, 5, 0)
/ showpagenumbers = false
</surveypage>

<text words>
/ items = (
"Misery",
"Bomb",
"Surgery",
"Chilli Pepper")
/ position = (50%, 15%)
/ fontstyle = ("Verdana", -30, true, false, false, false, 5, 0)
</text>

<slider q1>
/caption = "   Question 1. How related is the word to the sensation of hot pain?"
/labels=(" ","Unrelated","Somewhat unrelated", "Somewhat related","Related")
/range=(0,4)
/slidersize=(65%, 10%)
/fontstyle = ("Arial",2.5%, false, false, false, false, 5, 0)
/required=true
/position= (16%, 30%)
/defaultresponse = 0
</slider>

<slider q2>
/caption = "Question 2. What intensity of hot pain is the word most related to?"
/labels=(" ","Unrelated", "Mild", "Intense")
/range=(0,3)
/slidersize=(65%, 10%)
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 0)
/ required=true
/ defaultresponse = (0)
/position= (20%, 60%)
</slider>

<checkboxes unknown>
/ caption= ""
/ options= ("I don't know this word")
/ required = false
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 0)
/position= (20%, 80%)
/ defaultresponse = (false)
</checkboxes>

<block trials>
/trials=[1-3=trials]
</block>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
la_1985 - 4 Years Ago
Dave - 4 Years Ago
la_1985 - 4 Years Ago
Dave - 4 Years Ago
la_1985 - 4 Years Ago
                         A value retains what you set it to until you set it to something else....
Dave - 4 Years Ago
                             Thank you so much Dave, this was very helpful! I was asked to change...
la_1985 - 4 Years Ago
                                 <trial selectword> / ontrialbegin = [ values.trialnum += 1;...
Dave - 4 Years Ago
la_1985 - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search