Response font style as capitals


Author
Message
Nachtara
Nachtara
Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)Partner Member (662 reputation)
Group: Forum Members
Posts: 5, Visits: 19
Hi all,

i would like to make a surveypage with textboxes where people are only able to use upper cases but not have to press the shift button on their computer first. 
It it possible via response font style?

Thanks in advance!


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: 13K, Visits: 104K
Nachtara - Tuesday, November 20, 2018
Hi all,

i would like to make a surveypage with textboxes where people are only able to use upper cases but not have to press the shift button on their computer first. 
It it possible via response font style?

Thanks in advance!


No, but what you can do is have people type in whatever way they want, and then use the toupper() function to capitalize the entire response, e.g. if you want to use it as item later in the task. Example:

<block myblock>
/ trials = [1=mypage; 2-4 = mytrial]
</block>

<surveypage mypage>
/ ontrialend = [
item.myitems.setitem(toupper(textbox.q1.response),1);
item.myitems.setitem(toupper(textbox.q2.response),2);
item.myitems.setitem(toupper(textbox.q3.response),3);
]
/ questions = [1=q1; 2=q2; 3=q3]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<textbox q1>
/ caption = "Your favorite color?"
</textbox>

<textbox q2>
/ caption = "Your favorite food?"
</textbox>

<textbox q3>
/ caption = "Your favorite animal?"
</textbox>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = myitems
</text>

<item myitems>
/ 1 = ""
/ 2 = ""
/ 3 = ""
</item>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search