Millisecond Forums

Justifying text within a survey

https://forums.millisecond.com/Topic12534.aspx

By Ali - 3/3/2014

Hello. Is there a way to use '/ hjustify' and '/ size' for a text within a <survey> or <surveypage>? I couldn't figure out how to link <text> to <survey>. 

(I want to use this page for instructions for the participants only, and so it will not have any questions. But I could not use preinstructions because it does not seem to fit in a block in order to add it to an include element later on.)

Best, 

Ali
By Dave - 3/3/2014

To display a <text> element on a <surveypage>, use the page's /stimulusframes attribute.

Otherwise you can display text on a <surveypage> by setting up a <caption> element and displaying it via the page's /questions attribute.
By Ali - 3/3/2014

Thanks Dave. I wonder if you could show me how to do this. This the part I have now: 

---------------------------------------------------
<survey explicitend>
/ pages = [1=explicitend1]
/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)
/ itemfontstyle = ("Verdana", -12, true, false, false, false, 5, 0)
/ itemspacing = 10%
/ showpagenumbers = false
/ showbackbutton = false
/ finishlabel = "Next"
</survey>

<surveypage explicitend1>
/ caption = "This is the end of this section. Please click Next."
/ fontstyle = ("Verdana", -20, true, false, false, false, 5, 0)
</surveypage>
---------------------------------------------------

I'm trying to apply the following attributes to the above caption: 
/ size = (60%, 20%)
/ hjustify = center

Thanks!



By Dave - 3/3/2014

You cannot apply those attributes to a /caption attribute. You need to either set up a <text> element with those attributes and display it via the page's /stimulusframes. Or you need to set up a <caption> element with proper /position etc. and display it on the page via its /questions attribute.

<surveypage mypage>
/ stimulusframes = [1=mytext]
/ showpagenumbers = false
</surveypage>

<text mytext>
/ items = ("This is a text element on a surveypage.")
/ position = (50%, 20%)
</text>
By mariela - 3/27/2014

I have a question in regards to integrating text and pictures into a survey page, too.
I managed to place all my material by using the /stimulusframes command, so text and pictures are placed above my <radiobutton> question.

But If I now test this surveypage, I find that if a subject fails to choose an option from my radio button question, all the stimulusframe material disappears and only the radiobutton info remains visible, until the subject makes a valid choice.

Is there a way how I can keep the simulusframes material visible, eben if the subject first fails to make a valid choice and uses the "Finish" button first?

Thanks a lot in advance for any hint!
By Dave - 3/27/2014

You can either

(1) use <caption> and <image> elements displayed via the page's /questions attribute (instead <text> and <picture> displayed via /stimuluframes) or in some cases

(2) set the survey's or surveypage's topmargin, leftmargin etc. properties such that <text> and <picture> stimuli are not within the area that gets erased in case of a missing response to a given question.
By mariela - 3/27/2014

Thanks for your help.

I used your first solution for the text elements but didn't fint the <image> option with the options for radiobuttons.

Could you give me an example how to include an image into a surveypage / radiobutton question?
By Dave - 3/27/2014

Define an <image> element

<image someimage>
[...]
</image>

and display it via a <surveypage>'s > /questions attribute

<surveypage somepage
/ questions = [1=someimage; ...]
[...]
</surveypage>

just like any other question type (e.g. <radiobuttons>).

<caption> elements work exactly the same (note the difference to /caption *attributes*).
By mariela - 3/28/2014

Thank you for your help!