Increase/Change Size of Caption in Survey


Author
Message
Jakob
Jakob
Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)
Group: Forum Members
Posts: 16, Visits: 52
Hello,
I am programming an experiments, in which I am using the element surveypage. For one questionaire, I have rather long instructions, for which I am using the attribute /caption. However, the text of caption is cut off. It seems, as if the size of the caption field is limited. Is there a way to increase the size of caption in a surveypage? Are there any workarounds (I tried to use subcaption, however it is still not enough; is there a way to use a question as an instruction?). If not, the only other option I see is to decrease the font size, which I would like to avoid. Thank you!

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: 102K
Jakob - 10/18/2023
Hello,
I am programming an experiments, in which I am using the element surveypage. For one questionaire, I have rather long instructions, for which I am using the attribute /caption. However, the text of caption is cut off. It seems, as if the size of the caption field is limited. Is there a way to increase the size of caption in a surveypage? Are there any workarounds (I tried to use subcaption, however it is still not enough; is there a way to use a question as an instruction?). If not, the only other option I see is to decrease the font size, which I would like to avoid. Thank you!

You can use a separate <caption> element with a specified size. Like any other survey-type question element (radiobuttons, textbox, etc.), the caption element is displayed via the page's /questions attribute.

<surveypage examplepage>
/ questions = [1=examplecaption]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<caption examplecaption>
/ caption = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Scelerisque fermentum dui faucibus in. Quis risus sed vulputate odio. Feugiat sed lectus vestibulum mattis ullamcorper velit sed. Sit amet nulla facilisi morbi. Molestie a iaculis at erat pellentesque. Orci ac auctor augue mauris augue neque gravida. Nunc id cursus metus aliquam eleifend. Diam quam nulla porttitor massa. Egestas fringilla phasellus faucibus scelerisque eleifend. Leo vel fringilla est ullamcorper eget nulla facilisi etiam dignissim. Leo urna molestie at elementum eu facilisis sed. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum. Mattis enim ut tellus elementum. Ut tellus elementum sagittis vitae et. Pharetra massa massa ultricies mi quis hendrerit.

Tincidunt tortor aliquam nulla facilisi. Lobortis mattis aliquam faucibus purus in massa tempor nec feugiat. Orci eu lobortis elementum nibh tellus molestie nunc non blandit. Suspendisse sed nisi lacus sed viverra tellus. Sem fringilla ut morbi tincidunt. Velit dignissim sodales ut eu. Id porta nibh venenatis cras sed felis eget. Sit amet tellus cras adipiscing enim. Viverra ipsum nunc aliquet bibendum. Integer vitae justo eget magna. Pulvinar sapien et ligula ullamcorper. Sed cras ornare arcu dui vivamus arcu felis bibendum. Vitae justo eget magna fermentum. Ac felis donec et odio. Porttitor rhoncus dolor purus non. Tellus integer feugiat scelerisque varius morbi enim. Fames ac turpis egestas maecenas. Porttitor lacus luctus accumsan tortor posuere. Urna condimentum mattis pellentesque id. Enim blandit volutpat maecenas volutpat blandit aliquam etiam erat."
/ fontstyle = ("Verdana", 3%)
/ size = (95%, 75%)
</caption>

Jakob
Jakob
Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)Partner Member (736 reputation)
Group: Forum Members
Posts: 16, Visits: 52
Thank you. That makes sense and it works out (thus, problem solved). I was trying things like.

<surveypage examplepage>
/ caption = (examplescaption)
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<caption examplecaption>
/ caption = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Scelerisque fermentum dui faucibus in. Quis risus sed vulputate odio. Feugiat sed lectus vestibulum mattis ullamcorper velit sed. Sit amet nulla facilisi morbi. Molestie a iaculis at erat pellentesque. Orci ac auctor augue mauris augue neque gravida. Nunc id cursus metus aliquam eleifend. Diam quam nulla porttitor massa. Egestas fringilla phasellus faucibus scelerisque eleifend. Leo vel fringilla est ullamcorper eget nulla facilisi etiam dignissim. Leo urna molestie at elementum eu facilisis sed. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum. Mattis enim ut tellus elementum. Ut tellus elementum sagittis vitae et. Pharetra massa massa ultricies mi quis hendrerit.

Tincidunt tortor aliquam nulla facilisi. Lobortis mattis aliquam faucibus purus in massa tempor nec feugiat. Orci eu lobortis elementum nibh tellus molestie nunc non blandit. Suspendisse sed nisi lacus sed viverra tellus. Sem fringilla ut morbi tincidunt. Velit dignissim sodales ut eu. Id porta nibh venenatis cras sed felis eget. Sit amet tellus cras adipiscing enim. Viverra ipsum nunc aliquet bibendum. Integer vitae justo eget magna. Pulvinar sapien et ligula ullamcorper. Sed cras ornare arcu dui vivamus arcu felis bibendum. Vitae justo eget magna fermentum. Ac felis donec et odio. Porttitor rhoncus dolor purus non. Tellus integer feugiat scelerisque varius morbi enim. Fames ac turpis egestas maecenas. Porttitor lacus luctus accumsan tortor posuere. Urna condimentum mattis pellentesque id. Enim blandit volutpat maecenas volutpat blandit aliquam etiam erat."
/ fontstyle = ("Verdana", 3%)
/ size = (95%, 75%)
</caption>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search