capitalize part of the survey page caption or plain page.


Author
Message
Libra
Libra
Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)Partner Member (571 reputation)
Group: Forum Members
Posts: 36, Visits: 157
Hi,
I am piping in people's open-ended response to a previous question as part of caption for them in a later part of the experiment. How can I make the entire response displayed in upper case? I don't know how to use the toupper() function in page or surveypage. Please see my relevant code below. <%values.ambivalent_indulgent%> is the content that I want to capitalize. Thank you. 

<page indulgent_POSTEPT_instruction>
^^^<%values.ambivalent_indulgent%>
^^^You indicated that this food item is something that you strongly desire and find especially tempting but you generally try to avoid eating because of concerns about having too much of it.
^^^Please answer some questions about this food item
</page>

<surveypage indulgent_postEPT_1>
/ caption = "<%values.ambivalent_indulgent%>"
/ questions = [1=indulgent_positivefeeling; 2 = indulgent_negativefeeling; 3=indulgent_goodaftereat; 4=indulgent_badaftereat]
/ showpagenumbers = false
/ showquestionnumbers = false
/ fontstyle = ("Arial", 12pt, false)
/ nextbuttonposition = (80%, 90%)
</surveypage>
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: 109K
Libra - 9/4/2025
Hi,
I am piping in people's open-ended response to a previous question as part of caption for them in a later part of the experiment. How can I make the entire response displayed in upper case? I don't know how to use the toupper() function in page or surveypage. Please see my relevant code below. <%values.ambivalent_indulgent%> is the content that I want to capitalize. Thank you. 

<page indulgent_POSTEPT_instruction>
^^^<%values.ambivalent_indulgent%>
^^^You indicated that this food item is something that you strongly desire and find especially tempting but you generally try to avoid eating because of concerns about having too much of it.
^^^Please answer some questions about this food item
</page>

<surveypage indulgent_postEPT_1>
/ caption = "<%values.ambivalent_indulgent%>"
/ questions = [1=indulgent_positivefeeling; 2 = indulgent_negativefeeling; 3=indulgent_goodaftereat; 4=indulgent_badaftereat]
/ showpagenumbers = false
/ showquestionnumbers = false
/ fontstyle = ("Arial", 12pt, false)
/ nextbuttonposition = (80%, 90%)
</surveypage>

You just use the toupper() function inline:

<%toupper(values.ambivalent_indulgent)%>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search